★ areTrue()

areTrue()

Checks whether the values are a booleanarrow-up-right type or an instance of Booleanarrow-up-right equal to true by using every(), forEach() and some() methods of the returned object.

are-true.func.ts
const areTrue = <CommonPayload extends object>(...values: any[]) =>
  areDeterminer<CommonPayload>(isTrue, ...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 its elements against a booleanarrow-up-right type or an instance of Booleanarrow-up-right equal to true.

Returns

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

Last updated