We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31fe5ee commit 30b61f6Copy full SHA for 30b61f6
1 file changed
lib/node_modules/@stdlib/assert/is-boolean/lib/object.js
@@ -20,11 +20,16 @@
20
21
// MODULES //
22
23
-var hasToStringTag = require( '@stdlib/utils/detect-tostringtag-support' )();
+var hasToStringTag = require( '@stdlib/utils/detect-tostringtag-support' );
24
var nativeClass = require( '@stdlib/utils/native-class' );
25
var test = require( './try2serialize.js' );
26
27
28
+// VARIABLES //
29
+
30
+var FLG = hasToStringTag();
31
32
33
// MAIN //
34
35
/**
@@ -46,7 +51,7 @@ function isBoolean( value ) {
46
51
if ( value instanceof Boolean ) {
47
52
return true;
48
53
}
49
- if ( hasToStringTag ) {
54
+ if ( FLG ) {
50
55
return test( value );
56
57
return ( nativeClass( value ) === '[object Boolean]' );
0 commit comments