Concat function in Lodash will creates a new array that concat the array with any additional arrays and/or values.
It will not change the original array.
It's easy to use and simple.
I've run the test 5 times in a row, with about 1-2 seconds of interval and this is the result
Running Native concat first, then lodash concat
|Test||Native Concat||Lodash Concat||Differences|
Running Lodash concat first and then native concat.
|Test||Lodash Concat||Native Concat||Differences|
Some of Lodash function do actually make our life easier. It is useful and it makes the development much easier and faster as we do not have to implement a complex logic to get the result. So, it is up to you!
We will try to cover up more of the differences between lodash and inbuilt function so that we can have a look later on!
Thank you for reading :D
Psstt pstt :p Do consider to love this article ❤️ and follow me! Why not right? It's FREE~
I would really appreciate it 👨🏻💻