3 lines
125 B
JavaScript
3 lines
125 B
JavaScript
const isPlainObject = val => !!val && typeof val === 'object' && val.constructor === Object;
|
|
module.exports = isPlainObject;
|