Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "api/compare"

Index

Interfaces

Type aliases

Type aliases

Comparator

Comparator<T>: Fn2<T, T, number>

Generic 2-element comparator function type alias.

remarks

Must follow this contract and return:

  • negative if a < b
  • zero if a == b
  • positive if a > b

Type parameters

  • T

Generated using TypeDoc