forEach()

areString().forEach()

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

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

Example usage

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

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

Last updated