✏️ 编辑:isObject.js
路径:
/home/boguraj1/public_html/jobsite/node_modules/lodash/isObject.js
大小:733 B · 修改:2022-11-21 20:09:50 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
/** * Checks if `value` is the * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an object, else `false`. * @example * * _.isObject({}); * // => true * * _.isObject([1, 2, 3]); * // => true * * _.isObject(_.noop); * // => true * * _.isObject(null); * // => false */ function isObject(value) { var type = typeof value; return value != null && (type == 'object' || type == 'function'); } module.exports = isObject;
💾 保存
取消
保存为 UTF-8,换行统一为 LF