Answers for "js find all custom window properties"

0

js find all custom window properties

Object.keys(window).filter(x => typeof(window[x]) !== 'function' &&
  Object.entries(
    Object.getOwnPropertyDescriptor(window, x)).filter(e =>
      ['value', 'writable', 'enumerable', 'configurable'].includes(e[0]) && e[1]
    ).length === 4)
Posted by: Guest on December-25-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language