Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "IsArrayContainerOf"

Index

Functions

Functions

isArrayContainerOf

  • isArrayContainerOf(value: any[], target: any[]): boolean
  • Checks if value array contains all values from the given target array. If value is null, undefined, or not an array instance then this function returns false.

    The values check should be primitive javascript types (String, number, boolean, null, undefined, etc.). and not Object instances.

    Note that the check is value based. For example the values in the array [2,3,4,2] are contained by [2,3,4] even though the latter is shorter.

    Parameters

    • value: any[]

      The value container array being checked.

    • target: any[]

      The array of target values

    Returns boolean

    True if array contains all values from the given target array, false otherwise.

Generated using TypeDoc