Options
All
  • Public
  • Public/Protected
  • All
Menu

Module src/arrays/doesArrayContainTheGivenObject

Index

Functions

Const doesArrayContainTheGivenObject

  • doesArrayContainTheGivenObject<T>(object: T, arrayOfObjects: T[]): boolean
  • Returns true if array contains the given object

    example

    doesArrayContainTheGivenObject({x: 10, y: 12}, [{x: 10, y: 12},{a: 1, b: 2},{o: 5, p: 25}]) // returns true

    Type parameters

    • T

    Parameters

    • object: T
    • arrayOfObjects: T[]

    Returns boolean

Generated using TypeDoc