UNPKG

xhy-xe-utils

Version:
12 lines (10 loc) 215 B
/** * 判断是否对象 * * @param {Object} obj 对象 * @return {Boolean} */ function isPlainObject (obj) { return obj ? obj.constructor === Object : false } module.exports = isPlainObject