Options
All
  • Public
  • Public/Protected
  • All
Menu

Module collection

Functions

collectionAtAny

  • collectionAtAny(object: any, propertyNames: any, onFail: any): any
  • name

    collectionAtAny

    description

    Pick object property from list of names

    Parameters

    • object: any
    • propertyNames: any
    • onFail: any

    Returns any

collectionForEach

  • collectionForEach(iterable: any, iteratee: function): any
  • example

    const iterable = new Map(); iterable.set('someKey1', 1); iterable.set('someKey2', 2); // or const iterable = new Set(); iterable.add("entry1"); iterable.add("entry2"); // run function collectionForEach(iterable, (value, key, collection) => { console.group('-'); console.info('KEY'); console.log(key); console.info('VALUE'); console.log(value); console.groupEnd(); });

    Parameters

    • iterable: any
    • iteratee: function
        • (value: any, index: any, collection: any): any
        • Parameters

          • value: any
          • index: any
          • collection: any

          Returns any

    Returns any

collectionKeys

  • collectionKeys(iterable: any): any[]
  • Pick object property from list of names

    Parameters

    • iterable: any

    Returns any[]

collectionValues

  • collectionValues(iterable: any): any[]
  • Parameters

    • iterable: any

    Returns any[]

Generated using TypeDoc