add node modules
This commit is contained in:
14
node_modules/@octokit/request/dist-src/is-plain-object.js
generated
vendored
Normal file
14
node_modules/@octokit/request/dist-src/is-plain-object.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
function isPlainObject(value) {
|
||||
if (typeof value !== "object" || value === null)
|
||||
return false;
|
||||
if (Object.prototype.toString.call(value) !== "[object Object]")
|
||||
return false;
|
||||
const proto = Object.getPrototypeOf(value);
|
||||
if (proto === null)
|
||||
return true;
|
||||
const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
||||
return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
|
||||
}
|
||||
export {
|
||||
isPlainObject
|
||||
};
|
||||
Reference in New Issue
Block a user