Options
Menu

Module ArrayHelpers

Index

Functions

Functions

removeElements

  • removeElements(collection: Array<any>, newCollection: Array<any>, index?: string'id'): boolean
  • Removes elements in the target array based on the new collection, returns true if any changes were made

    Parameters

    • collection: Array<any>
    • newCollection: Array<any>
    • index?: string optional

    Returns boolean

sync

  • sync(collection: Array<any>, newCollection: Array<any>, index?: string'id'): boolean
  • Changes the existing collection to match the new collection to avoid re-assigning the array pointer, returns true if the array size has changed

    Parameters

    • collection: Array<any>
    • newCollection: Array<any>
    • index?: string optional

    Returns boolean

Generated using TypeDoc