All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.amd.functions.js Maven / Gradle / Ivy

The newest version!
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;

});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy