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)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

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

Okay