5.0.0-rc.0

some()

areDate().some()

Checks whether some of the provided values of areDate() are Date.

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

Returns

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

Example usage

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

areDate(new Date(), new Date('invalid date')).some((result, value, payload) => {
  result // true
  value // [Sat Sep 11 2021 21:37:43 GMT+0200 (Central European Summer Time), Invalid Date]
  payload // undefined
  return result;
}); // true, boolean

Last updated