Dash

Ahmed Murtaza

Front End Developer

Ovrlod

ahmedgmurtaza

slides.com/ahmedmurtaza

codepen.io/ahmedgmurtaza

https://medium.com/@ahmedgmurtaza

Introduction to

Lo-Dash was built to provide cross-environment iteration support for arrays, strings, objects, and arguments objects

 

1 - Superset of Underscore.js

2 - Compatibility:  IE11, Edge, Chrome, Opera, Safari, Firefox

3 - Current version 4.17.11

4 - In 2015 Lodash became the most depended on npm package, passed 1 billion downloads

5 - Currently 87473 dependents and 0 Dependencies on npm

Key features

<script src="lodash.js"></script>

Installation

In a browser:

$ npm i --save lodash

var _ = require('lodash');

using npm:

Basic usage

.compact
.difference
.concat
.chunk
.findIndex
.intersection
.size
.join
.toArray
.toInteger

 

_.compact

Creates an array with all falsey values removed. The values false, null, 0, "", undefined, and NaN are falsey.

_.difference

Creates an array of array values not included in the other given arrays

_.concat

Creates a new array concatenating array with any additional arrays and/or values.

_.chunk

Creates an array of elements split into groups the length of size

_.findIndex

_.size

Array

Object

String

_.join

Text

_.toArray

_.toInteger

Text

Thanks!

Introduction to Lo-Dash

By Ahmed Murtaza

Introduction to Lo-Dash

Lo-Dash was built to provide cross-environment iteration support for arrays, strings, objects, and arguments objects

  • 377