Let’s Chunk

See the original posting on DZone Python

There is huge amount of JavaScript libraries that give us all kinds of functionality – DOM manipulations, AJAX calls, animations, DB querying, you name it. There is a library (and usually more than one) for everything. All those functions provided by the libraries can be done, of course, in pure JavaScript.

Lodash and Underscore are two such libraries. They are very useful and contain a lot of utility functions that can make our life as JavaScript programmers easier. I won’t describe those libraries here, but, instead, for the practice, let’s write in pure JavaScript one of Lodash’s neat functions, called chunk.