UNPKG

xe-utils

Version:

JavaScript 函数库、工具类

14 lines (12 loc) • 335 B
/* eslint-disable valid-typeof */ import staticStrUndefined from './staticStrUndefined.js';/** * 判断是否Map对象 * * @param {Object} obj 对象 * @return {Boolean} */ var supportMap = typeof Map !== staticStrUndefined function isMap (obj) { return supportMap && obj instanceof Map } export default isMap