ใช้ Object.getOwnPropertyNames() คืนค่า Property ทั้งหมดของ Object แล้ว Filter เฉพาะ Function
ตัวอย่าง
<!DOCTYPE html> <html>
<body>
<script>
document.write("<br>"+Object.getOwnPropertyNames(Math).filter(function (p) {
return typeof Math[p] === 'function';
}));
</script>
</body>
</html>