Options
All
  • Public
  • Public/Protected
  • All
Menu

Functions to be used in {@link Array.prototype.filter} as a callback.

see

https://pavel-surinin.github.io/declarativejs/#/?id=filters

Index

Functions

equal

  • equal<T>(valueToMatch: T): _equal

notEmpty

  • notEmpty<T>(value: T): boolean

notEqual

  • notEqual<T>(valueToMatch: T): _notEqual

present

  • present<T>(value: T): boolean

takeWhile

  • takeWhile<T>(predicate: Predicate<T>): _takeWhile

unique

  • unique(): _unique

uniqueBy

  • uniqueBy<T, R>(getValue: Getter<T, R>): function
  • uniqueBy<T, K>(key: K): function
  • Function to be used in {@link Array.prototype.filter} as a callback. Determines uniqueness by value from callback. This value must be comparable with strict equals

    see

    https://pavel-surinin.github.io/declarativejs/#/?id=tobeuniqueby

    Type parameters

    • T

    • R

    Parameters

    • getValue: Getter<T, R>

      callback to resolve comparable value

    Returns function

      • (value: T, index: number, arr: T[]): boolean
      • Parameters

        • value: T
        • index: number
        • arr: T[]

        Returns boolean

  • Function to be used in {@link Array} filter function as a callback. Determines uniqueness by value resolved by objects key. This value must be comparable with strict equals

    see

    https://pavel-surinin.github.io/declarativejs/#/?id=tobeuniqueby

    Type parameters

    • T

    • K: keyof T

    Parameters

    • key: K

      objects key to resolve comparable value

    Returns function

      • (value: T, index: number, arr: T[]): boolean
      • Parameters

        • value: T
        • index: number
        • arr: T[]

        Returns boolean

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc