5.0.0-rc.0

every()

areTrue().every()

Checks whether every of the provided values of areTrue() is a boolean type or an instance of Boolean equal to true.

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

Returns

The return value is a boolean indicating whether the provided values of areTrue() are a boolean type or an instance of Boolean equal to true.

Example usage

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

const deleteElements = [true, false, false,  new Boolean(false)];

areTrue(...deleteElements).every((result, value, payload) => {
  result // false
  value // [ true, false, false, Boolean ]
  payload // undefined
  return result;
}); // false, boolean

Last updated