8 lines
202 B
JavaScript
8 lines
202 B
JavaScript
function all_properties(obj)
|
|
{
|
|
return Object.getOwnPropertyNames(obj);
|
|
}
|
|
|
|
console.log(all_properties(Math));
|
|
|
|
console.log(all_properties(Array));
|