Options
All
  • Public
  • Public/Protected
  • All
Menu

Module src/object/objectCompareForSort

Index

Functions

Const objectCompareForSort

  • objectCompareForSort<T>(key: string): (Anonymous function)
  • Returns a function that compares 2 values given a key|key path that exists in both JSON values and returns either 1, 0 or -1

    Type parameters

    • T: object

    Parameters

    • key: string

      A key path that should exist in both input values of the returned function

    Returns (Anonymous function)

    Comparison function

Generated using TypeDoc