some()

areDefined().some()

Checks whether some of the provided values of areDefined() are defined.

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

Returns

The return value is a boolean indicating whether some of the provided values of areDefined() are defined.

Example usage

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

let age;

areDefined('1', 2, null, undefined, age).some((result, value, payload) => {
  result // true
  value // [ '1', 2, null, undefined, undefined ]
  payload // undefined
  return result;
}); // true, boolea

Last updated