Skip to content

Commit 31fe5ee

Browse files
committed
Add instanceof check
1 parent 4abbc7a commit 31fe5ee

File tree

1 file changed

+3
-0
lines changed
  • lib/node_modules/@stdlib/assert/is-boolean/lib

1 file changed

+3
-0
lines changed

lib/node_modules/@stdlib/assert/is-boolean/lib/object.js

+3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ var test = require( './try2serialize.js' );
4343
*/
4444
function isBoolean( value ) {
4545
if ( typeof value === 'object' ) {
46+
if ( value instanceof Boolean ) {
47+
return true;
48+
}
4649
if ( hasToStringTag ) {
4750
return test( value );
4851
}

0 commit comments

Comments
 (0)