File tree Expand file tree Collapse file tree 2 files changed +12
-14
lines changed
lib/node_modules/@stdlib/assert
is-enumerable-property/lib Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 1818
1919'use strict' ;
2020
21- // MODULES //
22-
23- var getGlobal = require ( '@stdlib/utils/global' ) ;
24-
25-
2621// VARIABLES //
2722
28- var Global = getGlobal ( ) ;
23+ var BigInt = require ( '@stdlib/bigint/ctor' ) ;
2924
3025
3126// MAIN //
@@ -40,12 +35,7 @@ var Global = getGlobal();
4035* // returns <boolean>
4136*/
4237function 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 ) ;
4939}
5040
5141
Original file line number Diff line number Diff line change 3232*
3333* @example
3434* var beep = {
35- * 'boop': true
35+ * 'boop': true
3636* };
3737*
3838* var bool = isEnumerableProperty( beep, 'boop' );
3939* // returns true
4040*
4141* @example
4242* var beep = {
43- * 'boop': true
43+ * 'boop': true
4444* };
4545*
4646* var bool = isEnumerableProperty( beep, 'hasOwnProperty' );
4747* // 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>
4856*/
4957var isEnumerableProperty = Object . prototype . propertyIsEnumerable ;
5058
You can’t perform that action at this time.
0 commit comments