Repository URL to install this package:
|
Version:
1.2.6 ▾
|
"use strict";
/**
* @param {*}
* @return {boolean}
*/
const isUndefined = x => x === undefined;
/**
* @param {*} value
* @return {boolean}
*/
function isPlainObject(value) {
if (value === null || typeof value !== 'object') {
return false;
}
const proto = Object.getPrototypeOf(value);
return proto === Object.prototype || proto === null;
}
exports.isPlainObject = isPlainObject;
exports.isUndefined = isUndefined;