Tag Archives: Lodash

Lodash: 10 Javascript Utility Functions That You Should Probably Stop Rewriting


via Lodash: 10 Javascript Utility Functions That You Should Probably Stop Rewriting | Colin Toh.

While I’m working on Javascript applications, I often found myself writing utility module which contains, unsurprisingly, utility methods. So what are utility module?

An utility class is a class that defines a set of methods that perform common, often re-used functions. – Wikipedia

From dealing with strings and objects to collections iterating problems, there will always be cases where there is a gap for an utility function to fulfil.

Even with the mainstream adoption of ES6, I dare say that Javascript developers still don’t get as much syntax sugars as other languages such as Objective-C and Ruby. Hence, the need to write custom helpers for utilitarian tasks is still prevalent in Javascript applications.

However, as of late, I came to be very fond of a library which provides clean and performant utility methods – Lodash.

Colin Toh