5.0.0-rc.0

forEach()

areBoolean().forEach()

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

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

Example usage

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

areBoolean(1, true, null, new Boolean(3)).forEach(
  (result, value, index, array, payload) => {
    result // false, true, false, true
    value // 1, true, null, Boolean
    index // 0, 1, 2, 3
    array // [ 1, true, null, Boolean ]
    payload // { age: 2 }
  },
  { age: 2 }
);

Last updated