time-to-botec/squiggle/node_modules/@stdlib/assert/is-boxed-primitive/docs/repl.txt

32 lines
586 B
Plaintext
Raw Normal View History

{{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
--------