Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "src/module/obj/mapObject"

Index

Functions

Functions

mapObject

  • mapObject<R>(obj: Record<string, any>, func: (kv: [string, any]) => [string, any]): R
  • 将对象的键和值进行映射

    Type parameters

    • R: Record<string, any>

    Parameters

    • obj: Record<string, any>
    • func: (kv: [string, any]) => [string, any]
        • (kv: [string, any]): [string, any]
        • Parameters

          • kv: [string, any]

          Returns [string, any]

    Returns R

Generated using TypeDoc