Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • YArray

Index

Constructors

constructor

Methods

Static clear

  • clear(array: any[]): void
  • Clears the target array.

    Parameters

    • array: any[]

    Returns void

Static create

  • create(...item: any[]): any[]
  • Returns new array created from one or more objects.

    Parameters

    • Rest ...item: any[]

    Returns any[]

Static orderByAsNumbers

  • orderByAsNumbers(array: number[]): void
  • This instruction will sort selected array of numbers in ascending order.

    Parameters

    • array: number[]

    Returns void

Static orderByAsNumbersDescending

  • orderByAsNumbersDescending(array: number[]): void
  • This instruction will sort selected array of numbers in descending order.

    Parameters

    • array: number[]

    Returns void

Static randomArrayItem

  • randomArrayItem(array: any[]): any
  • Returns a value of randomly selected cell of an array .

    Parameters

    • array: any[]

    Returns any

Static remove

  • remove(array: any[], object: any): void
  • remove(array: any[], object: any[]): void
  • Allows to remove selected object from array.

    Parameters

    • array: any[]
    • object: any

    Returns void

  • Allows to remove array of objects from array.

    Parameters

    • array: any[]
    • object: any[]

    Returns void

Static removeAt

  • removeAt(array: any[], index: number): void
  • Allows to remove an object from array at given array position (index).

    Parameters

    • array: any[]
    • index: number

    Returns void

Static shuffle

  • shuffle(array: any[]): void
  • This instruction will randomize the order of the values inside of the target array.

    Parameters

    • array: any[]

    Returns void

Generated using TypeDoc