Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #find #custom #window #properties
ADD COMMENT
Topic
Name
3+3 =