@stdlib/array
Version:
Arrays.
31 lines (23 loc) • 615 B
Plain Text
{{alias}}( from, to )
Returns a boolean indicating whether a provided array data type can be
safely cast or, for floating-point data types, downcast to another array
data type.
Parameters
----------
from: string
Array data type.
to: string
Array data type.
Returns
-------
bool: boolean
Boolean indicating whether a provided data type can be cast to another
data type.
Examples
--------
> var bool = {{alias}}( 'float32', 'float64' )
true
> bool = {{alias}}( 'float64', 'int32' )
false
See Also
--------