vue-underscore
You know Underscore.js is a utility-belt library for JavaScript that provides support for the usual functional suspects (each, map, reduce, filter...) without extending any core JavaScript objects. I arranged it as a vue plugin to use on your projects.
Table of Contents
Requirements
- Vue.js
2.x
Installation
# npm $ npm install vue-underscore
Usage
After use plugin on main.js. You can call it simply with 'this.$_.findwhere' (each, map, reduce, filter...)
main.js
;;; Vue; ...App;
You will be able to access underscore directly via
; let testArr = id: 1 id:2;let foundInfo = _;
Examples