1Object.keys(window).filter(x => typeof(window[x]) !== 'function' &&
2 Object.entries(
3 Object.getOwnPropertyDescriptor(window, x)).filter(e =>
4 ['value', 'writable', 'enumerable', 'configurable'].includes(e[0]) && e[1]
5 ).length === 4)
6