Lo is a Vuejs plugin that includes all the functionalities of lodash.
- lodash A modern JavaScript utility library delivering modularity, performance, & extras.
npm i @chris5855/vue-lo
#or
yarn add @chris5855/vue-lo
You must install lo as a plugin via Vue.use().
import Vue from 'vue';
import lo from '@chris5855/vue-lo';
Vue.use(lo);
<script>
export default {
name: 'App',
setup(props, context) {
let object = {
'a': [{ 'b': 2 }, { 'd': 4 }]
};
let other = {
'a': [{ 'c': 3 }, { 'e': 5 }]
};
let merge = context.root.$_.merge(object, other);
console.log(merge);
return{}
}
}
</script>
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
- Chris Michael (Project Leader, and Developer)
This is just a personal project created for study / demonstration purpose and to simplify my working life, it may or may not be a good fit for your project(s).
Please ⭐ this repository if you like it or this project helped you!
Feel free to open issues or submit pull-requests to help me improving my work.
Chris Michael
Copyright © Lo 2021