Options
All
  • Public
  • Public/Protected
  • All
Menu

Module mutation

Index

Type Aliases

Add: { (value: number): Mutation<Nullable<number>, Nullable<number>>; (duration: { D?: number; M?: number; Y?: number; days?: number; h?: number; hours?: number; m?: number; milliseconds?: number; minutes?: number; months?: number; ms?: number; s?: number; seconds?: number; years?: number }): Mutation<Nullable<Date>, Nullable<Date>> }

Type declaration

    • (value: number): Mutation<Nullable<number>, Nullable<number>>
    • (duration: { D?: number; M?: number; Y?: number; days?: number; h?: number; hours?: number; m?: number; milliseconds?: number; minutes?: number; months?: number; ms?: number; s?: number; seconds?: number; years?: number }): Mutation<Nullable<Date>, Nullable<Date>>
    • Parameters

      • value: number

      Returns Mutation<Nullable<number>, Nullable<number>>

    • Parameters

      • duration: { D?: number; M?: number; Y?: number; days?: number; h?: number; hours?: number; m?: number; milliseconds?: number; minutes?: number; months?: number; ms?: number; s?: number; seconds?: number; years?: number }
        • Optional D?: number
        • Optional M?: number
        • Optional Y?: number
        • Optional days?: number
        • Optional h?: number
        • Optional hours?: number
        • Optional m?: number
        • Optional milliseconds?: number
        • Optional minutes?: number
        • Optional months?: number
        • Optional ms?: number
        • Optional s?: number
        • Optional seconds?: number
        • Optional years?: number

      Returns Mutation<Nullable<Date>, Nullable<Date>>

Compare<T>: ((a: T, b: T) => number)

Type Parameters

  • T

Type declaration

    • (a: T, b: T): number
    • Parameters

      • a: T
      • b: T

      Returns number

ExcludeInclude: { <T>(indices: number[]): Mutation<T, T>; <T>(indices: number[], count: number): Mutation<T, T>; <T, I>(predicate: ((item: I, index: number) => boolean)): Mutation<T, T>; <T, I>(predicate: ((item: I, index: number) => boolean), count: number): Mutation<T, T> }

Type declaration

    • <T>(indices: number[]): Mutation<T, T>
    • <T>(indices: number[], count: number): Mutation<T, T>
    • <T, I>(predicate: ((item: I, index: number) => boolean)): Mutation<T, T>
    • <T, I>(predicate: ((item: I, index: number) => boolean), count: number): Mutation<T, T>
    • Type Parameters

      Parameters

      • indices: number[]

      Returns Mutation<T, T>

    • Type Parameters

      Parameters

      • indices: number[]
      • count: number

      Returns Mutation<T, T>

    • Type Parameters

      Parameters

      • predicate: ((item: I, index: number) => boolean)
          • (item: I, index: number): boolean
          • Parameters

            • item: I
            • index: number

            Returns boolean

      Returns Mutation<T, T>

    • Type Parameters

      Parameters

      • predicate: ((item: I, index: number) => boolean)
          • (item: I, index: number): boolean
          • Parameters

            • item: I
            • index: number

            Returns boolean

      • count: number

      Returns Mutation<T, T>

Move: { <T, I>(to: number, predicate: ((item: I, index: number) => boolean)): Mutation<T, T>; <T>(to: number, indices: number[]): Mutation<T, T> }

Type declaration

    • <T, I>(to: number, predicate: ((item: I, index: number) => boolean)): Mutation<T, T>
    • <T>(to: number, indices: number[]): Mutation<T, T>
    • Type Parameters

      Parameters

      • to: number
      • predicate: ((item: I, index: number) => boolean)
          • (item: I, index: number): boolean
          • Parameters

            • item: I
            • index: number

            Returns boolean

      Returns Mutation<T, T>

    • Type Parameters

      Parameters

      • to: number
      • indices: number[]

      Returns Mutation<T, T>

SortBuilder<T>: { add: any; asc: any; desc: any }

Type Parameters

  • T

Type declaration

Functions

  • add(value: number): Mutation<Nullable<number>, Nullable<number>>
  • add(duration: { D?: number; M?: number; Y?: number; days?: number; h?: number; hours?: number; m?: number; milliseconds?: number; minutes?: number; months?: number; ms?: number; s?: number; seconds?: number; years?: number }): Mutation<Nullable<Date>, Nullable<Date>>
  • Parameters

    • value: number

    Returns Mutation<Nullable<number>, Nullable<number>>

  • Parameters

    • duration: { D?: number; M?: number; Y?: number; days?: number; h?: number; hours?: number; m?: number; milliseconds?: number; minutes?: number; months?: number; ms?: number; s?: number; seconds?: number; years?: number }
      • Optional D?: number
      • Optional M?: number
      • Optional Y?: number
      • Optional days?: number
      • Optional h?: number
      • Optional hours?: number
      • Optional m?: number
      • Optional milliseconds?: number
      • Optional minutes?: number
      • Optional months?: number
      • Optional ms?: number
      • Optional s?: number
      • Optional seconds?: number
      • Optional years?: number

    Returns Mutation<Nullable<Date>, Nullable<Date>>

  • exclude<T>(indices: number[]): Mutation<T, T>
  • exclude<T>(indices: number[], count: number): Mutation<T, T>
  • exclude<T, I>(predicate: ((item: I, index: number) => boolean)): Mutation<T, T>
  • exclude<T, I>(predicate: ((item: I, index: number) => boolean), count: number): Mutation<T, T>
  • include<T>(indices: number[]): Mutation<T, T>
  • include<T>(indices: number[], count: number): Mutation<T, T>
  • include<T, I>(predicate: ((item: I, index: number) => boolean)): Mutation<T, T>
  • include<T, I>(predicate: ((item: I, index: number) => boolean), count: number): Mutation<T, T>
  • item<T>(predicate: boolean | number[] | ((item: T, index: number) => boolean), ...mutations: Mutation<T, T>[]): Mutation<Nullable<T[]>, T[]>
  • merge<T>(props: NoInfer<T extends I[] ? {} : { [ key in string | number | symbol]?: T[key] }>): Mutation<T, T>
  • move<T, I>(to: number, predicate: ((item: I, index: number) => boolean)): Mutation<T, T>
  • move<T>(to: number, indices: number[]): Mutation<T, T>
  • mutate<T>(value: T, ...mutations: Mutation<T, T>[]): T
  • slice<T>(from: number, to?: number): Mutation<T, T>
  • splice<T, I>(index: number, deleteCount?: number, insert?: NoInfer<I>[]): Mutation<T, T>
  • swap<T, P>(from: P, to: P): Mutation<T, T>
  • unset<T, P>(...props: P[]): Mutation<T, T>

Generated using TypeDoc