some()

areTrue().some()

Checks whether some of the provided values of areTrue() are a booleanarrow-up-right type or an instance of Booleanarrow-up-right equal to true.

circle-info

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

Returns

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

Example usage

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

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

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

Last updated

Was this helpful?