5.0.0-rc.0

areDate()

areDate()

Checks whether the values are Date by using every(), forEach() and some() methods of the returned object.

are-date.func.ts
const areDate = <CommonPayload extends object>(...values: any[]) =>
  areDeterminer<CommonPayload>(isDate, ...values);

Generic type variables

CommonPayloadextendsobject

The CommonPayload generic type variable constrained by the object constrains the generic type variable Payload of each returned method.

Parameters

...values: any[]

A rest parameter of any type to check its elements against Date.

Returns

The return value is an object of every(), some() and forEach() as methods of checking supplied values.

Last updated