every()

areBoolean().every()

Checks whether every of the provided values of areBoolean() is a booleanarrow-up-right type or an instance of Booleanarrow-up-right.

circle-info

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

Returns

The return value is a booleanarrow-up-right indicating whether the provided values of areBoolean() are a booleanarrow-up-right type or an instance of Booleanarrow-up-right.

Example usage

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

areBoolean(1, true, null, new Boolean(3)).every((result, value, payload) => {
  result // false
  value // [1, true, null, Boolean]
  payload // undefined
  return result;
}); // false, boolean

Last updated