Checks whether every provided value of areNull() is null.

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


The return value is a boolean indicating whether the provided values of areNull() are null.

Example usage

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

areNull(null, undefined, false, !!null).every((result, value, payload) => {
  result // false
  value // [ null, undefined, false, false ]
  payload // undefined
  return result;
}); // false, boolean

Last updated