File tree Expand file tree Collapse file tree 2 files changed +10
-12
lines changed
lib/node_modules/@stdlib/assert
is-enumerable-property/lib Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 20
20
21
21
// MODULES //
22
22
23
- var getGlobal = require ( '@stdlib/utils/global' ) ;
24
-
25
-
26
- // VARIABLES //
27
-
28
- var Global = getGlobal ( ) ;
23
+ var BigInt = require ( '@stdlib/bigint/ctor' ) ;
29
24
30
25
31
26
// MAIN //
@@ -40,12 +35,7 @@ var Global = getGlobal();
40
35
* // returns <boolean>
41
36
*/
42
37
function hasBigIntSupport ( ) {
43
- return (
44
- typeof Global . BigInt === 'function' &&
45
- typeof BigInt === 'function' && // eslint-disable-line stdlib/require-globals
46
- typeof Global . BigInt ( '1' ) === 'bigint' &&
47
- typeof BigInt ( '1' ) === 'bigint' // eslint-disable-line stdlib/require-globals, no-undef
48
- ) ;
38
+ return ( BigInt !== null ) ;
49
39
}
50
40
51
41
Original file line number Diff line number Diff line change 45
45
*
46
46
* var bool = isEnumerableProperty( beep, 'hasOwnProperty' );
47
47
* // returns false
48
+ *
49
+ * @example
50
+ * var bool = isEnumerableProperty( null, 'boop' );
51
+ * // throws <TypeError>
52
+ *
53
+ * @example
54
+ * var bool = isEnumerableProperty( void 0, 'boop' );
55
+ * // throws <TypeError>
48
56
*/
49
57
var isEnumerableProperty = Object . prototype . propertyIsEnumerable ;
50
58
You can’t perform that action at this time.
0 commit comments