Page Contents

Home > @loopback/repository > Type > isCoercible

Type.isCoercible() method

Check if the given value can be coerced into this type

Signature:

isCoercible(value: any, options?: Options): boolean;

Parameters

Parameter Type Description
value any The value to to be coerced
options Options  

Returns:

boolean

A flag to indicate if the value can be coerced