@stdlib/assert
Version:
Standard assertion utilities.
30 lines (22 loc) • 515 B
Plain Text
{{alias}}( a, b )
Tests if two arguments have the same native class.
Parameters
----------
a: any
First input value.
b: any
Second input value.
Returns
-------
bool: boolean
Boolean indicating whether two arguments have the same native class.
Examples
--------
> var bool = {{alias}}( 3.14, new Number( 3.14 ) )
true
> bool = {{alias}}( 'beep', 'boop' )
true
> bool = {{alias}}( {}, [] )
false
See Also
--------