_.identity
  • References/JavaScript/Underscore/Utility

identity_.identity(value) Returns the same value that is used as the argument. In math: f(x) = x This function looks

2025-01-10 15:47:30
_.every
  • References/JavaScript/Underscore/Collection

every_.every(list, [predicate], [context]) Alias: all Returns true if all of the values

2025-01-10 15:47:30
_.sample
  • References/JavaScript/Underscore/Collection

sample_.sample(list, [n]) Produce a random sample from the list. Pass a number to return n random elements from the

2025-01-10 15:47:30
_.defaults
  • References/JavaScript/Underscore/Object

defaults_.defaults(object, *defaults) Fill in undefined properties in object with the first value present in the

2025-01-10 15:47:30
_.extend
  • References/JavaScript/Underscore/Object

extend_.extend(destination, *sources) Copy all of the properties in the source objects over to the destination

2025-01-10 15:47:30
_.invoke
  • References/JavaScript/Underscore/Collection

invoke_.invoke(list, methodName, *arguments) Calls the method named by methodName on each value in the list. Any extra

2025-01-10 15:47:30
_.propertyOf
  • References/JavaScript/Underscore/Object

propertyOf_.propertyOf(object) Inverse of _.property. Takes an object and returns a function which will return the value

2025-01-10 15:47:30
_.property
  • References/JavaScript/Underscore/Object

property_.property(key) Returns a function that will itself return the key property of any passed-in object.

2025-01-10 15:47:30
_.matches
  • References/JavaScript/Underscore/Object

matcher_.matcher(attrs) Alias: matches Returns a predicate function that will tell you if a passed

2025-01-10 15:47:30
_.extendOwn
  • References/JavaScript/Underscore/Object

extendOwn_.extendOwn(destination, *sources) Alias: assign Like extend, but only copies own

2025-01-10 15:47:30