setup-maven-cached/node_modules/underscore/cjs/functions.js

13 lines
291 B
JavaScript
Raw Permalink Normal View History

2022-06-28 16:39:30 +08:00
var isFunction = require('./isFunction.js');
// Return a sorted list of the function names available on the object.
function functions(obj) {
var names = [];
for (var key in obj) {
if (isFunction(obj[key])) names.push(key);
}
return names.sort();
}
module.exports = functions;