Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.21 KB

some.md

File metadata and controls

27 lines (19 loc) · 1.21 KB

some()

areBoolean().some()

Checks whether some of the provided values of areBoolean() are a boolean type or an instance of Boolean.

{% hint style="info" %} The method uses some() method of areDeterminer(). {% endhint %}

Returns

The return value is a boolean indicating whether some of the provided values of areBoolean() are a boolean type or an instance of Boolean.

Example usage

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

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