Skip to content
JavaScript extensions
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.markdown
array.extract.js
array.filter.field.js
array.map.js
array.minmax.js
function.bind.js
math.signum.js

README.markdown

README

  • Array.prototype.extract(field) extracts a new array containing the specified field as an object
  • Array.prototype.filterByField(field, key) returns an array of objects where the given field of the object equals the given key
  • Array.prototype.map(from, to) returns an associative array mapping the from field of an object in the array to the to field of the same object.
  • Array.prototype.max() returns the maximum of an array
  • Array.prototype.min() returns the minimum of an array
  • Function.prototype.bind = function(context) Bind function wraps a function in a closure, storing a reference to the context argument in the containing scope
  • Math.signum(x) calculates the signum of the parameter
Something went wrong with that request. Please try again.