UNPKG

xe-utils

Version:

JavaScript 函数库、工具类

12 lines (10 loc) • 263 B
import staticWindow from './staticWindow.js';/** * 判断是否Window对象 * * @param {Object} obj 对象 * @return {Boolean} */ function isWindow (obj) { return !!(staticWindow && !!(obj && obj === obj.window)) } export default isWindow