'use strict'; function aPlainObj(target) { return target === null ? false : target?.constructor?.name === 'Object' || typeof target === 'object' && !target?.__proto__ // for Object.create({}) ; } module.exports = aPlainObj;