7fife-backend/node_modules/underscore/amd/functions.js

15 lines
308 B
JavaScript
Raw Normal View History

2024-03-07 13:01:44 +00:00
define(['./isFunction'], function (isFunction) {
// 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();
}
return functions;
});