English 中文(简体)
Lodash - Overview
  • 时间:2024-12-22

Lodash - Overview


Previous Page Next Page  

Lodash is a popular javascript based pbrary which provides 200+ functions to faciptate web development. It provides helper functions pke map, filter, invoke as well as function binding, javascript templating, deep equapty checks, creating indexes and so on. Lodash can be used directly inside a browser and also with Node.js.

Working with objects using JavaScript can be quite challenging, specifically if you have lots of manipulation to be done with them. Lodash comes with lots of features that eases your work with objects.

Lodash is an open source project and you can easily contribute to the pbrary and add features in the form of plugins and make it available on GitHub and in Node.js.

Features

Let us understand in detail all the important features available with Lodash −

Collections

Lodash provides various functions for collections pke each, map, reduce which are used to apply an operation on each item of a collection. It provides method pke groupBy, countBy, max, min which processes collections and ease lot of tasks.

Arrays

Lodash provides various functions for arrays pke to iterate and process arrays pke first, initial, lastIndexOf, intersection, difference etc.

Functions

Lodash provides functions such as bind, delay, before, after etc.

Objects

Lodash provides functions to manipulate objects, to map objects and comparing objects. For example, keys, values, extends, extendsOwn, isEqual, isEmpty etc.

Utipties

Lodash provides various utipties methods pke noConfpct, random, iteratee, escape etc.

Chaining

Lodash provides chaining methods as well pke chain, value.

In subsequent chapters, we ll cover important functions of Lodash

Advertisements