mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-21 18:59:27 +08:00
a0f00e5017
Co-authored-by: OliverMKing <OliverMKing@users.noreply.github.com>
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;
|