_.random
  • References/JavaScript/Underscore/Utility

random_.random(min, max) Returns a random integer between min and max, inclusive. If you only pass one argument, it

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

pluck_.pluck(list, propertyName) A convenient version of what is perhaps the most common use-case for map: extracting a list

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
_.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
_.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
_.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
_.isEmpty
  • References/JavaScript/Underscore/Object

isEmpty_.isEmpty(object) Returns true if an enumerable object contains no values (no enumerable own-properties). For

2025-01-10 15:47:30
_.union
  • References/JavaScript/Underscore/Array

union_.union(*arrays) Computes the union of the passed-in arrays: the list of unique items, in order, that are present in

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

isEqual_.isEqual(object, other) Performs an optimized deep comparison between the two objects, to determine if they should be considered

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

isMatch_.isMatch(object, properties) Tells you if the keys and values in properties are contained in object.

2025-01-10 15:47:30