Sha256: 104c6f722fc613c4cf5e69cdd27ed3d4f814f5d09cd3441c1b046a26969863c5
Contents?: true
Size: 603 Bytes
Versions: 320
Compression:
Stored size: 603 Bytes
Contents
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window var toIObject = require('./_to-iobject') , gOPN = require('./_object-gopn').f , toString = {}.toString; var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; var getWindowNames = function(it){ try { return gOPN(it); } catch(e){ return windowNames.slice(); } }; module.exports.f = function getOwnPropertyNames(it){ return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it)); };
Version data entries
320 entries across 8 versions & 3 rubygems