Packages
A web application in pursuit of meaning in life.
Current section
Files
Jump to
Current section
Files
assets/node_modules/mout/object/functions.js
var forIn = require('./forIn');
/**
* return a list of all enumerable properties that have function values
*/
function functions(obj){
var keys = [];
forIn(obj, function(val, key){
if (typeof val === 'function'){
keys.push(key);
}
});
return keys.sort();
}
module.exports = functions;