Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

list all functions in an object js

getMethods = (obj) => Object.getOwnPropertyNames(obj).filter(item => typeof obj[item] === 'function')
Source by flaviocopes.com #
 
PREVIOUS NEXT
Tagged: #list #functions #object #js
ADD COMMENT
Topic
Name
3+8 =