initial commit of actions
This commit is contained in:
commit
949ece5785
44660 changed files with 12034344 additions and 0 deletions
31
github/codeql-action-v2/node_modules/ts-poet/build/is-plain-object.js
generated
vendored
Normal file
31
github/codeql-action-v2/node_modules/ts-poet/build/is-plain-object.js
generated
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
"use strict";
|
||||
/*!
|
||||
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
||||
*
|
||||
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isPlainObject = void 0;
|
||||
function isPlainObject(o) {
|
||||
if (o === null || o === undefined)
|
||||
return false;
|
||||
if (!isObject(o))
|
||||
return false;
|
||||
// If has modified constructor
|
||||
const ctor = o.constructor;
|
||||
if (ctor === undefined)
|
||||
return true;
|
||||
// If has modified prototype
|
||||
if (!isObject(ctor.prototype))
|
||||
return false;
|
||||
// If constructor does not have an Object-specific method
|
||||
if (!ctor.prototype.hasOwnProperty('isPrototypeOf'))
|
||||
return false;
|
||||
// Most likely a plain Object
|
||||
return true;
|
||||
}
|
||||
exports.isPlainObject = isPlainObject;
|
||||
function isObject(o) {
|
||||
return Object.prototype.toString.call(o) === '[object Object]';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue