some()

areNumber().some()

Checks whether some of the provided values of areNumber() are a number type or an instance of Number.

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

Returns

The return value is a boolean indicating whether some of 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').some((result, value, payload) => {
  result // true
  value // [ 1, Number, 3, '4' ]
  payload // undefined
  return result;
}); // true, boolean

Last updated