Function mapKey

  • Type Parameters

    • R
    • S extends Record<string | number | symbol, any>
    • T = any

    Parameters

    • subject: S
    • predicate: ((this: T, key: keyof S, index: number, obj: (keyof S)[], subject: S) => R)
        • (this, key, index, obj, subject): R
        • Parameters

          • this: T
          • key: keyof S
          • index: number
          • obj: (keyof S)[]
          • subject: S

          Returns R

    • OptionalthisArg: T

    Returns R[]