Matty
Matty
NNuxt
Created by Matty on 6/12/2024 in #❓・help
Is there a way to access all useState keys in use?
I want to be able to filter all state keys. e.g.
// Access keys here???
const state_keys = ['key1', 'key2'].find((x) => x.includes('2'));

if (state_keys && state_keys.length > 0) {
for (const state_key of state_keys) {

// Do something

}
}
// Access keys here???
const state_keys = ['key1', 'key2'].find((x) => x.includes('2'));

if (state_keys && state_keys.length > 0) {
for (const state_key of state_keys) {

// Do something

}
}
2 replies