I'm a professional PHP, Python and Javascript developer from the UK. I've worked with Django, Laravel, and React, among others. I also maintain a legacy Zend 1 application.
Mine would probably be map(), sort() and filter(), with an honourable mention for reduce().
Because I use React a lot, I often have to loop through a list of sub components to render. For that, map() is indispensable in transforming an array from a list of Javascript objects into React components. It's also common to have to sort and filter them.
On occasion I also need to produce some form of aggregate from array data, and the combination of map() and reduce() can be very powerful for that.
+1 for map. It's a really great and clean method to transform array data structures. Use it all the time, no matter if it's a React component or a vanilla javascript.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Mine would probably be
map()
,sort()
andfilter()
, with an honourable mention forreduce()
.Because I use React a lot, I often have to loop through a list of sub components to render. For that,
map()
is indispensable in transforming an array from a list of Javascript objects into React components. It's also common to have to sort and filter them.On occasion I also need to produce some form of aggregate from array data, and the combination of
map()
andreduce()
can be very powerful for that.+1 for
map
. It's a really great and clean method to transform array data structures. Use it all the time, no matter if it's a React component or a vanilla javascript.