Downstream consumers of this function should not rely on specific integer values (e.g., INT8 == 0). Instead, the function should be used in an opaque manner.
Parameters
dtype: string
data type string
Returns
number | null
enumeration constant
Example
var v = str2enum( 'float64' );
// returns <number>
Returns the enumeration constant associated with a strided array data type string.
Notes
INT8 == 0
). Instead, the function should be used in an opaque manner.