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.
get-proto
1 parent 5cc3c2d commit 6dfff38Copy full SHA for 6dfff38
index.js
@@ -4,7 +4,7 @@ var toStr = Object.prototype.toString;
4
var fnToStr = Function.prototype.toString;
5
var isFnRegex = /^\s*(?:function)?\*/;
6
var hasToStringTag = require('has-tostringtag/shams')();
7
-var getProto = Object.getPrototypeOf;
+var getProto = require('get-proto');
8
var getGeneratorFunc = function () { // eslint-disable-line consistent-return
9
if (!hasToStringTag) {
10
return false;
package.json
@@ -42,6 +42,7 @@
42
"url": "https://github.com/inspect-js/is-generator-function/issues"
43
},
44
"dependencies": {
45
+ "get-proto": "^1.0.0",
46
"has-tostringtag": "^1.0.2"
47
48
"devDependencies": {
0 commit comments