How to get the list of all Array standard built-in object methods (functions) in JavaScript

1 Answer

0 votes
console.log(Object.getOwnPropertyNames(Array).filter(function (p) {
    return typeof Array[p] === 'function';
}));
 


/*
run:

[
"isArray" ,
"from" ,
"of"
] 

*/

 



answered Nov 19, 2020 by avibootz
...