_.escape

escape_.escape(string) Escapes a string for insertion into HTML, replacing &, <, >, ", `, and ' characters. _.escape('Curly, Larry & Moe'); => "Curly, Larry &amp; Moe"

_.pick

pick_.pick(object, *keys) Return a copy of the object, filtered to only have values for the whitelisted keys (or array of valid keys). Alternatively accepts a predicate indicating which keys to pick. _.pick({name: 'moe', age: 50, userid: 'moe1'}, 'name', 'age'); => {name: 'moe', age: 50} _.pick({name: 'moe', age: 50, userid: 'moe1'}, function(value, key, object) { return _.isNumber(value); }); => {age: 50}

_.compose

compose_.compose(*functions) Returns the composition of a list of functions, where each function consumes the return value of the function that follows. In math terms, composing the functions f(), g(), and h() produces f(g(h())). var greet = function(name){ return "hi: " + name; }; var exclaim = function(statement){ return statement.toUpperCase() + "!"; }; var welcome = _.compose(greet, exclaim); welcome('moe'); => 'hi: MOE!'

_.value

value_.chain(obj).value() Extracts the value of a wrapped object. _.chain([1, 2, 3]).reverse().value(); => [3, 2, 1]

_.findIndex

findIndex_.findIndex(array, predicate, [context]) Similar to _.indexOf, returns the first index where the predicate truth test passes; otherwise returns -1. _.findIndex([4, 6, 8, 12], isPrime); => -1 // not found _.findIndex([4, 6, 7, 12], isPrime); => 2

_.select

filter_.filter(list, predicate, [context]) Alias: select Looks through each value in the list, returning an array of all the values that pass a truth test (predicate). var evens = _.filter([1, 2, 3, 4, 5, 6], function(num){ return num % 2 == 0; }); => [2, 4, 6]

_.reduceRight

reduceRight_.reduceRight(list, iteratee, memo, [context]) Alias: foldr The right-associative version of reduce. Foldr is not as useful in JavaScript as it would be in a language with lazy evaluation. var list = [[0, 1], [2, 3], [4, 5]]; var flat = _.reduceRight(list, function(a, b) { return a.concat(b); }, []); => [4, 5, 2, 3, 0, 1]

_.every

every_.every(list, [predicate], [context]) Alias: all Returns true if all of the values in the list pass the predicate truth test. Short-circuits and stops traversing the list if a false element is found. _.every([2, 4, 5], function(num) { return num % 2 == 0; }); => false

_.pluck

pluck_.pluck(list, propertyName) A convenient version of what is perhaps the most common use-case for map: extracting a list of property values. var stooges = [{name: 'moe', age: 40}, {name: 'larry', age: 50}, {name: 'curly', age: 60}]; _.pluck(stooges, 'name'); => ["moe", "larry", "curly"]

_.min

min_.min(list, [iteratee], [context]) Returns the minimum value in list. If an iteratee function is provided, it will be used on each value to generate the criterion by which the value is ranked. Infinity is returned if list is empty, so an isEmpty guard may be required. var numbers = [10, 5, 100, 2, 1000]; _.min(numbers); => 2