.head and .tail Browser Support for Spread in array literals .head and .tail Gets the first element or all but the first element. const array = [ 1 , 2 , 3 ] // U...
.sortBy and .orderBy Browser Support for Array.prototype.concat() and Array.prototype.sort() .sortBy and .orderBy Sorts an array of object based on an object key provided by a...
_.chain(value) Since Arguments Returns Example _.chain(value) source Creates a lodash wrapper instance that wraps value with explicit method chain sequences enabled. Th...
_.pluck Browser Support for Array.prototype.map() _.pluck array.map or .map can also be used to replace .pluck . Lodash v4.0 removed .pluck in favor of .map with iterate...
Voice of Developers Voice of Developers Make use of native JavaScript object and array utilities before going big. —Cody Lindley, Author of jQuery Cookbook and JavaScript...