Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
13 lines
338 B
Plaintext
13 lines
338 B
Plaintext
import { getType } from "./getType.mjs";
|
|
import { isObject } from "./isObject.mjs";
|
|
function isPlainObject(value) {
|
|
if (!isObject(value) || getType(value) !== "Object") {
|
|
return false;
|
|
}
|
|
const prototype = Object.getPrototypeOf(value);
|
|
return prototype === null || prototype === Object.prototype;
|
|
}
|
|
export {
|
|
isPlainObject
|
|
};
|