Open In App

Lodash Seq Complete Reference

Improve
Improve
Like Article
Like
Save
Share
Report

Lodash is a JavaScript library that works on the top of underscore.js. Lodash helps in working with arrays, strings, objects, numbers, etc. Lodash Seq methods are used to perform tasks on the sequence of numbers, strings, any objects, etc.

Methods

Description

_.chain() It is used to wrap the value with explicit method chain sequences enabled.
_.tap() It is used to call interceptor.
_.thru() It returns the outcome of the interceptor.
_.prototype[Symbol.iterator]() It is used to permit the wrapper to be iterable.
_.prototype.at() It creates an array of values analogous to the specified paths of an object.
_.prototype.chain() It creates an instance of lodash wrapper accompanied by explicit method chain sequences enabled.
_.prototype.commit() It is used to implement the chain sequence type and find the wrapped output.
_.prototype.next() It finds the next value on a wrapped object which follows the iterator protocol.
_.prototype.plant() It creates a clone of the chain sequence type by planting the value to be planted as the wrapped value.
_.prototype.reverse() It is used to mutate the wrapped array.
_.prototype.toJSON() It executes the chain sequence in order to solve the unwrapped value.
_.prototype.value() It executes the given chain sequence in order to resolve the unwrapped value.
_.prototype.valueOf() It executes the chain sequence in order to solve the unwrapped value.

Last Updated : 26 Jul, 2023
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads