Methods
(static) cast(value) → {*}
Casts the specified value to this type. Note that, for recursive types (array, object), this will leave their sub-structures intact.
Parameters:
Name | Type | Description |
---|---|---|
value |
* |
- Source:
Returns:
- Type
- *
(static) validate(value) → {boolean}
Determines if the specified value can be cast to this type.
Parameters:
Name | Type | Description |
---|---|---|
value |
* |
- Source:
Returns:
- Type
- boolean