time-to-botec/squiggle/node_modules/@stdlib/utils/native-class/docs/repl.txt
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

38 lines
1.1 KiB
Plaintext

{{alias}}( value )
Returns a string value indicating a specification defined classification of
an object.
The function is *not* robust for ES2015+ environments. In ES2015+,
`Symbol.toStringTag` allows overriding the default description of an object.
While measures are taken to uncover the default description, such measures
can be thwarted. While this function remains useful for type-checking, be
aware that value impersonation is possible. Where possible, prefer functions
tailored to checking for particular value types, as specialized functions
are better equipped to address `Symbol.toStringTag`.
Parameters
----------
value: any
Input value.
Returns
-------
out: string
String value indicating a specification defined classification of the
input value.
Examples
--------
> var str = {{alias}}( 'a' )
'[object String]'
> str = {{alias}}( 5 )
'[object Number]'
> function Beep(){};
> str = {{alias}}( new Beep() )
'[object Object]'
See Also
--------