// 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 }}