areDefined()

areDefined()

Checks whether the values are defined 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 objectarrow-up-right constrains the generic type variable Payload of each returned method.

Parameters

...values: any[]

A rest parameter of anyarrow-up-right type to check whether its elements are defined.

Returns

The return value is an objectarrow-up-right of every()arrow-up-right, some()arrow-up-right and forEach()arrow-up-right as methods of checking supplied values.

Last updated