Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

list methods of object js

Object.getOwnPropertyNames(obj)
Comment

js list object methods

Object.getPrototypeOf(obj)
Comment

list all functions in an object js

getMethods = (obj) => Object.getOwnPropertyNames(obj).filter(item => typeof obj[item] === 'function')
Comment

PREVIOUS NEXT
Code Example
::  
::  
::  
Javascript ::  
::  
::  
::  
::  
::  
::  
::  
::  
Javascript ::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
Javascript ::  
::  
::  
ADD CONTENT
Topic
Content
Source link
Name
9+2 =