Options
All
  • Public
  • Public/Protected
  • All
Menu

Module ArrayHelper

Index

Functions

AddRange

  • AddRange<T>(array: Array<T>, items: Array<T>): void
  • Type parameters

    • T

    Parameters

    • array: Array<T>
    • items: Array<T>

    Returns void

Find

  • Find<T>(array: Array<T>, comparer: function): T
  • Type parameters

    • T

    Parameters

    • array: Array<T>
    • comparer: function
        • (item: T): boolean
        • Parameters

          • item: T

          Returns boolean

    Returns T

OfType

  • OfType<T, U>(array: Array<U>, comparer: function): T[]
  • Type parameters

    • T

    • U

    Parameters

    • array: Array<U>
    • comparer: function
        • (item: U): boolean
        • Parameters

          • item: U

          Returns boolean

    Returns T[]

Rank

  • Rank(array: any[], testElementCount?: number): number
  • dirty calculation of max dimension, will return more than one if array contains any array element in first testElementCount items

    Parameters

    • array: any[]
    • Default value testElementCount: number = 4

    Returns number

RemoveEntry

  • RemoveEntry<T>(array: Array<T>, entry: T): boolean
  • Type parameters

    • T

    Parameters

    • array: Array<T>
    • entry: T

    Returns boolean

isArray

  • isArray(obj: any): boolean
  • Parameters

    • obj: any

    Returns boolean

Generated using TypeDoc