mirror of
https://github.com/stCarolas/setup-maven.git
synced 2024-11-27 05:36:09 +08:00
15 lines
308 B
JavaScript
15 lines
308 B
JavaScript
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;
|
|
|
|
});
|