UNPKG

ut2

Version:

一个现代 JavaScript 实用工具库。[点击查看在线文档]。

12 lines (8 loc) 335 B
'use strict'; var getTagWithBugfix = require('./internals/getTagWithBugfix.js'); var native = require('./internals/native.js'); var nodeUtil = require('./internals/nodeUtil.js'); function isSet(value) { return nodeUtil.nodeIsSet ? nodeUtil.nodeIsSet(value) : getTagWithBugfix(value) === native.setTag; } module.exports = isSet;