Table of Content
Introducing Lo-Dash
In order to do the intersection, we need one more library – Lo-Dash.
Lo-Dash is good for collection manipulation.
What Lo-Dash can do?
- Looping a collection
- Make collection items unique
- Check if collection contians a given item
- Union collections
- Intersection collections
Why using Lo-Dash but not Underscore? Consistancy and performance. Check this post Say "Hello" to Lo-Dash from the core Lo-Dash team for the consintancy reason. And this post for performance reason.
What’s next? We’re going to take a look at “Listing all the tags”.