You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/assert/has-same-constructor/README.md
+9-12Lines changed: 9 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,12 +35,12 @@ var hasSameConstructor = require( '@stdlib/assert/has-same-constructor' );
35
35
Returns a `boolean` indicating whether two given values has same contructor function.
36
36
37
37
```javascript
38
-
var x =newNumber(5);
39
-
var y =newNumber(10);
38
+
var x =5
39
+
var y =10;
40
40
var bool =hasSameConstructor( x, y );
41
41
// returns true
42
42
43
-
x =newNumber(5);
43
+
x =5;
44
44
y = [];
45
45
bool =hasSameConstructor( x, y );
46
46
// returns false
@@ -69,7 +69,7 @@ bool = hasSameConstructor( x, y );
69
69
// returns false
70
70
```
71
71
72
-
- Value arguments other than `null` or `undefined` are coerced to `objects`(e.g., “Primitives like `5` or `'hello'` are autoboxed to objects, such as `new Number(5)` or `new String('hello')`, forconstructor checking”).
72
+
- Value arguments other than `null` or `undefined` are coerced to `objects`.
73
73
74
74
```javascript
75
75
var bool = hasSameConstructor( 'beep', 'length' );
@@ -94,19 +94,19 @@ var hasSameConstructor = require( '@stdlib/assert/has-same-constructor' );
0 commit comments