Checks whether every of the provided values of areDefined() is defined.

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


The return value is a boolean indicating whether 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).every((result, value, payload) => {
  result // false
  value // [ '1', 2, null, undefined, undefined ]
  payload // undefined
  return result;
}); // false, boolean

Last updated