DEV Community

Cover image for Array Manipulation in React
Chris Godber
Chris Godber

Posted on

2 1

Array Manipulation in React


Covering some methods of common array manipulation in javascript
in an example react project

0:00 - Intro
03:56 - push method - push a random number to end of array
07:06 - index referencing - reference 1st value in array
09:00 - Display Length of an array
11:00 Map Method - Map values of original array x 2
15.00 Filter Method - filter numbers over 5 in original random array

Sourcecode :
https://github.com/drnoir/arrmanip

Top comments (0)

The best way to debug slow web pages cover image

The best way to debug slow web pages

Tools like Page Speed Insights and Google Lighthouse are great for providing advice for front end performance issues. But what these tools can’t do, is evaluate performance across your entire stack of distributed services and applications.

Watch video

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay