Underscore provides 80-odd functions that help you deal with collections, arrays, functions, objects, and more.
You can use Underscore in your Web application or on Node.js.
When minified and GZipped it weighs in at less than 4Kb. Where possible it delegates functionality to native browser implementations for performance. It has no other dependencies and so adds very little overhead to your total script assets. It can be used on the client or server.
In this post, you’ll learn how to use Underscore for finding items in your single page app. You’ll learn how to:
- Select a group of toys based on price cutoff.
- Find a toy from its name.
- Get a sorted list of unique categories.
- Sort the list of product names.
Continue reading “Single Page App – Finding Items in JSON Using Underscore or LoDash”