Hi
I’m new to react and I am going through the react course (9hrs) and Mosh is using lodash quite a few times. Im wondering if that is an old technique now and would ES6 features render that redundant?
He uses:
._range() ._orderBy() ._get()
and some others.
Thanks in advance
He’s using _.range (“._range” will give you error) where lodash is imported as:
_.range
import _ from 'lodash'
I think the methods you’ve mentioned still don’t exist in JS, however, this article was written in August 2020 and it says:
JavaScript doesn’t have an elegant native one range solution, neither for creating arrays nor for iteration only purposes, however
arrays
iteration