Options
All
  • Public
  • Public/Protected
  • All
Menu

Functions

Functions

genSort

  • genSort<T>(field: keyof T, rule?: "asc" | "desc"): (Anonymous function)

根据比较的 key 和排序规则生成 sort 函数的函数参数

Type parameters

  • T: object

Parameters

  • field: keyof T

    排序字段

  • rule: "asc" | "desc" = "desc" Default value

    顺序还是倒序,默认倒序

Returns (Anonymous function)

可以作为 {@link Array.prototype.sort} 函数的参数

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.