every()

areNumber().every()

Checks whether every of the provided of areNumber() is a number type or an instance of Number.

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

Returns

The return value is a boolean indicating whether the provided values of areNumber() are a number type or an instance of Number.

Example usage

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

areNumber(1, new Number(2), Number(3), '4').every((result, value, payload) => {
  result // false
  value // [ 1, Number, 3, '4' ]
  payload // undefined
  return result;
}); // false, boolean

Last updated