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 6395417 commit 593f38bCopy full SHA for 593f38b
lib/node_modules/@stdlib/utils/inherit/lib/detect.js
@@ -2,14 +2,20 @@
2
3
// MODULES //
4
5
-var objectCreate = require( './native.js' );
6
-var createObject = require( './polyfill.js' );
+var builtin = require( './native.js' );
+var polyfill = require( './polyfill.js' );
7
8
9
-// EXPORTS //
+// MAIN //
10
11
-if ( typeof objectCreate === 'function' ) {
12
- module.exports = objectCreate;
+var createObject;
+if ( typeof builtin === 'function' ) {
13
+ createObject = builtin;
14
} else {
- module.exports = createObject;
15
+ createObject = polyfill;
16
}
17
+
18
19
+// EXPORTS //
20
21
+module.exports = createObject;
0 commit comments