method |
Description |
_.each(list, iterate, [context]) |
By using the iterate function user can iterate each nd every element in the collection. |
_.map(list, iterate, [context]) |
By using iterate function user can map each value and displays them in a new array. |
_.reduce(list, iterate, memo, [context]) |
Which is also known as injecting and fold is used to reduce the list of values to a single value. |
_.find(list, predicate, [context]) |
Which find each and every value and returns the first one which process predicate or test. |
_.filter(list, predicate, [context]) |
Which filter each and every value and returns the array of values which process predicate or test. |
_.reject(list, predicate, [context]) |
Which returns the rejected elements in the list which don't pass the predicted values. |
_.every(list, predicate, [context]) |
If elements in the list pass the predicted values which return. |
_.some(list, predicate, [context]) |
If elements in the list pass the predicted values which returns. |
_.contains(list, value, [fromindex]) |
If value present in the list which returns true. |
_.invoke(list, method name, *arguments) |
Which invokes the method name using method name() on each value in the list. |
_.max(list, [iterate], [context]) |
Is used to to specify the maximum value in the list. |
_.min(list, [iterate], [context]) |
Is used to specify the minimum value in the list. |
_.sortby(list, [iterate], [context]) |
Is used to return the sorted elements in ascending order by using the iterate in the list. |
_.groupby(list, [iterate], [context]) |
Which divides the collection values into sets and grouped by using iterated in the list. |
_.shuffle(list) |
Which return the shuffled list. |
_.size(list) |
Which define number values in the list. |
_.toarray(list) |
Which defines an array of the list. |
_.first(array, [n]) |
Which specify the first element of the array in the list. |
_.initial(array, [n]) |
Which specify the last entry of the array in the list and it returns everything. |
_.last(array, [n]) |
Which specify the last element of the array in the list. |
_.last(object) |
which returns there are no objects in the list. |
_.chain(obj) |
which is used to return wrapped object. |