UNPKG

@erfffun/utils

Version:

Energi javascript utilities for web development

8 lines (6 loc) 212 B
const isNode = typeof global !== 'undefined' && {}.toString.call(global) === '[object global]' && (!global.document || {}.toString.call(global.document) !== '[object HTMLDocument]'); export default isNode;