time-to-botec/js/node_modules/@stdlib/assert/is-boxed-primitive/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

32 lines
586 B
Plaintext

{{alias}}( value )
Tests if a value is a JavaScript boxed primitive.
Boxed primitive objects can be created with one of the following:
- new Boolean()
- new Number()
- new String()
- Object( Symbol() ) (ES6/ES2015)
Parameters
----------
value: any
Value to test.
Returns
-------
bool: boolean
Boolean indicating whether a value is a JavaScript boxed primitive.
Examples
--------
> var bool = {{alias}}( new Boolean( false ) )
true
> bool = {{alias}}( true )
false
See Also
--------