forEach()

areNumber().forEach()

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

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

Example usage

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

areNumber(1, new Number(2), Number(3), '4').forEach(
  (result, value, index, array, payload) => {
    result // true, true, true, false
    value // 1, Number, 3, '4'
    index // 0, 1, 2, 3
    array // [ 1, Number, 3, '4' ]
    payload // { age: 2 }
  },
  { age: 2 }
);

Last updated