forEach()

areSymbol().forEach()

The forEach() method executes a provided callback function once for each element of the supplied values of areSymbol().

The method uses forEach() method of areDeterminer().

Example usage

// Example usage.
import { areSymbol } from '@angular-package/type';

areSymbol(Symbol(1), 2, Symbol(3), 4).forEach(
  (result, value, index, array, payload) => {
    result // true, false, true, false
    value // Symbol(1), 2, Symbol(3), 4
    index // 0, 1, 2, 3
    array // [ Symbol(1), 2, Symbol(3), 4 ]
    payload //  { age: 2 }

    if (result === true) {
      // if undefined do something.
    }
  },
  { age: 2 }
); // void

Last updated