mirror of
https://github.com/stCarolas/setup-maven.git
synced 2024-11-26 21:26:07 +08:00
13 lines
291 B
JavaScript
13 lines
291 B
JavaScript
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;
|