CoolFace
Apppublic

AK-21/Graphite-Industrial-Intelligence

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
index.js9 linesDownload Raw Back to is-plain-obj
1export default function isPlainObject(value) {2	if (typeof value !== 'object' || value === null) {3		return false;4	}5 6	const prototype = Object.getPrototypeOf(value);7	return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);8}9