lodash

Getting started with lodash

Remarks#

Lodash is a library of utilities for manipulating and examining objects and arrays.

Versions#

VersionRelease Date
v0.1.02012-04-23
v0.2.02012-05-21
v0.2.12012-05-24
v0.2.22012-05-30
v0.3.02012-06-06
v0.3.12012-06-10
v0.3.22012-06-14
v0.4.02012-07-11
v0.4.12012-07-11
v0.4.22012-07-16
v0.5.02012-08-17
v0.5.12012-08-18
v0.5.22012-08-21
v0.6.02012-08-28
v0.6.12012-08-29
v0.7.02012-09-11
v0.8.02012-10-01
v0.8.12012-10-04
v0.8.22012-10-10
v0.9.02012-10-24
v0.9.12012-10-31
v0.9.22012-11-09
v0.10.02012-11-17
v1.0.02013-02-14
v1.0.12013-02-18
v1.0.22013-02-18
v1.1.02013-03-26
v1.1.12013-03-27
v1.2.02013-04-16
v1.2.12013-04-29
v1.3.02013-06-11
v1.3.12013-06-12
v2.0.02013-09-13
v2.1.02013-09-22
v2.2.02013-09-28
v2.2.12013-10-03
v2.3.02013-11-10
v2.4.02013-11-25
v2.4.12013-12-02
v2.4.22015-04-26
v3.0.02015-01-26
v3.0.12015-01-30
v3.1.02015-02-03
v3.2.02015-02-12
v3.3.02015-02-20
v3.3.12015-02-24
v3.4.02015-03-06
v3.5.02015-03-08
v3.6.02015-03-25
v3.7.02015-04-15
v3.8.02015-05-01
v3.9.02015-05-19
v3.9.22015-05-24
v3.9.32015-05-26
v3.10.02015-06-30
v3.10.12015-08-04
v4.0.02016-01-12
v4.0.12016-01-25
v4.1.02016-01-29
v4.2.02016-02-02
v4.2.12016-02-03
v4.3.02016-02-07
v4.4.02016-02-15
v4.5.02016-02-17
v4.5.12016-02-21
v4.6.02016-02-29
v4.6.12016-03-01
v4.7.02016-03-31
v4.8.02016-04-04
v4.8.12016-04-04
v4.8.22016-04-04
v4.9.02016-04-08
v4.10.02016-04-11
v4.11.02016-04-13
v4.11.12016-04-14
v4.11.22016-04-21
v4.12.02016-05-08
v4.13.02016-05-22
v4.13.12016-05-23

Setup

Lodash works equally well on both servers (like node.js) and browsers.

node.js with npm

Download with npm from the CLI:

npm install lodash

Then in your node scripts:

var _ = require("lodash");

// use lodash in your program...

Download own copy for clientside in website (ie. in the browser)

  1. Download lodash or use a package manager like npm, jspm or bower.
  2. Include the script reference in your page with <script src="lodash.js"></script>. (Fix the path if it’s not in same directory as the webpage.)

Use lodash in a browser from a CDN

Go to a CDN site and select the version you want to use. Copy the link and use it for the script reference in your page.

<script src="https://cdn.jsdelivr.net/lodash/4.13.1/lodash.min.js"></script>

4.13.1 is current version at time of writing


This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow