Counting with lodash is easy. A lot of the time, an array is returned, so I just need to read the length property. If I'm working with a chain, I can simply use the size() function. What I like about size() is that it works with anything — strings, arrays, and objects. However, using length or size() isn't always the most efficient answer.
Showing posts with label mixin. Show all posts
Showing posts with label mixin. Show all posts
Friday, July 24, 2015
Efficient counting with lodash
Subscribe to:
Posts
(
Atom
)