lodash package in Node JS

Lodash is a wonderful javascript library that makes it easier to work with arrays, strings, objects numbers etc.

Lodash’s modular methods are great for:

  • Iterating arrays, objects, & strings
  • Manipulating & testing values
  • Creating composite functions

Installing lodash package using npm

npm i -g npm

example usage:

const _ = require("lodash");

const customListName = _.capitalize(req.params.customListName);

About the Author: smartcoder

You might like

Leave a Reply

Your email address will not be published. Required fields are marked *