Skip to main content

getKeys

Callable

  • getKeys(params: Record<string, string>[], key: string, allowEmpty?: boolean): string[]

  • Returns the keys from an array of objects.

    @example
    getKeys([{a: '1', b: '2'}, {a: '3', b: '4'}], 'a') => ['1', '3']

    Parameters

    • params: Record<string, string>[]
    • key: string
    • optionalallowEmpty: boolean

    Returns string[]

    output just a simple array of output keys