👁 查看:index.js
路径:/home/boguraj1/public_html/jobsite/node_modules/is-plain-obj/index.js
大小:245 B · 修改:2022-11-21 20:09:24 · 权限:0644 · 可写
'use strict';

module.exports = value => {
	if (Object.prototype.toString.call(value) !== '[object Object]') {
		return false;
	}

	const prototype = Object.getPrototypeOf(value);
	return prototype === null || prototype === Object.prototype;
};