5.0.0-rc.0

forEach()

areNull().forEach()

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

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

Example usage

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

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

Last updated