Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "iter/sorted-keys"

Index

Functions

Functions

sortedKeys

  • sortedKeys(x: any, cmp?: Comparator<string>): Generator<string, void, undefined>
  • Syntax sugar for Object.keys(x).sort() with support for custom comparator (default: {@link @thi.ng/compare#compare}) and yielding iterator of sorted keys.

    Parameters

    • x: any

      -

    • Default value cmp: Comparator<string> = compare

      -

    Returns Generator<string, void, undefined>

Generated using TypeDoc