Skip to content
background-image background-image

Using lodash

This example shows how to use lodash module. Lodash contains large number of routines, this example contains only very small subset.

lodash module is imported as _

// 1. isEqual https://lodash.com/docs/4.17.15#isEqual
var object = { 'a': 1 };
var other = { 'a': 1 };

_.isEqual(object, other);
// => true

// 2. verify
const decoded = jwt.verify(token, 'secret');