Permalink
Cannot retrieve contributors at this time
38 lines (28 sloc)
850 Bytes
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
codeql-action/node_modules/is-plain-object/dist/is-plain-object.js
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
Object.defineProperty(exports, '__esModule', { value: true }); | |
/*! | |
* is-plain-object <https://github.com/jonschlinkert/is-plain-object> | |
* | |
* Copyright (c) 2014-2017, Jon Schlinkert. | |
* Released under the MIT License. | |
*/ | |
function isObject(o) { | |
return Object.prototype.toString.call(o) === '[object Object]'; | |
} | |
function isPlainObject(o) { | |
var ctor,prot; | |
if (isObject(o) === false) return false; | |
// If has modified constructor | |
ctor = o.constructor; | |
if (ctor === undefined) return true; | |
// If has modified prototype | |
prot = ctor.prototype; | |
if (isObject(prot) === false) return false; | |
// If constructor does not have an Object-specific method | |
if (prot.hasOwnProperty('isPrototypeOf') === false) { | |
return false; | |
} | |
// Most likely a plain Object | |
return true; | |
} | |
exports.isPlainObject = isPlainObject; |