UNPKG

387 BJavaScriptView Raw
1var forIn = require('./forIn');
2
3 /**
4 * return a list of all enumerable properties that have function values
5 */
6 function functions(obj){
7 var keys = [];
8 forIn(obj, function(val, key){
9 if (typeof val === 'function'){
10 keys.push(key);
11 }
12 });
13 return keys.sort();
14 }
15
16 module.exports = functions;
17
18