Utility TypeScript @ 2.0.0-beta.2
    Preparing search index...

    Function objectKeySortAsync

    • Sorts a record object according to its keys and returns a sorted copy.

      Optionally provide a function to create the strings used to sort each object.

      Type Parameters

      Parameters

      • objPromise: T_Obj | Promise<T_Obj>
      • recursive: boolean = false
      • OptionalsortMaker: (key: string | number) => string

        Takes an object key and returns the value to use when sorting it.

        Use this to e.g., add padding to numbers before sorting as strings or to sort 'primary', 'secondary', etc. as their numerical values.

      Returns Promise<T_Obj>

      PKG_VERSION