• Preparing search index...
  • The search index is not available
Tidyscripts Docs
  • Tidyscripts Docs
  • node
  • common
  • fp
  • sort_by_prop

Function sort_by_prop

  • sort_by_prop(property): ((a: any, b: any) => number)
  • Creates comparator function based on property value From https://stackoverflow.com/questions/1129216/sort-array-of-objects-by-string-property-value Returns a comparator function for use in Array.sort

    Parameters

    • property: string

      The prop to sort by

    Returns ((a: any, b: any) => number)

      • (a, b): number
      • Parameters

        • a: any
        • b: any

        Returns number

    • Defined in packages/ts_common/dist/fp.d.ts:164

Settings

Member Visibility
Tidyscripts Docs
  • Loading...

Generated using TypeDoc