fastcode-test-v2 - v1.0.7
    Preparing search index...

    Function changeArrayProperty

    • 修改多维数组对象属性名

      Type Parameters

      • T extends Record<string, any>

      Parameters

      • arr: T[]

        源数组

      • oldKey1: keyof T

        原属性名1

      • oldKey2: keyof T

        原属性名2

      • newKey1: string

        新属性名1

      • newKey2: string

        新属性名2

      Returns any[]

      转换后的数组