@ethereumjs/util / getKeys
getKeys(
params,key,allowEmpty?):string[]
Defined in: packages/util/src/internal.ts:151
Collect string values for key from each object in params.
Record<string, string>[]
string
boolean
When true, missing values become empty strings instead of throwing
string[]
getKeys([{a: '1', b: '2'}, {a: '3', b: '4'}], 'a') => ['1', '3']
If params is not an array or a selected value is not a string