@absolunet/ioc2.1.0

View on GitHub

Evaluator

Class that evaluates a value. It handles undefined, null, string, boolean, number and bigint types. It will evaluate if a given value should be parsed as another value.

Methods

evaluate(value)

Source:
Safely evaluate primitive type.
Parameters:
Name Type Description
value * The value to evaluate.
Returns:
The evaluated value.
Type
string | null | boolean | number | *