Files
Manmics/mangashelf-server/node_modules/@honeo/check/_is/is-object-literal.mjs
T
2025-10-10 18:00:07 -04:00

13 lines
284 B
JavaScript

/*
const obj = {} みたいなの
arg.constructor===Object でもよさそう。
2020.11.08
Object#__proto__ => Object.getPrototypeOf()
*/
function isObjectLiteral(arg){
return Object.getPrototypeOf(arg)===Object.prototype;
}
export default isObjectLiteral;