Hello Trailblazers, This is the recording of my live session on "Untangle JavaScript Arrays" with Chennai Salesforce WIT Group held on 24th October 2020. In this session, I discussed about what are JavaScript Arrays and various basic as well as advanced methods of JavaScript Arrays.
Basic Methods like:- push, pop, unshift, shift, isArray, reverse, forEach, concat are explained in this video
Advanced Methods like:- find, findIndex, filter, sort, splice, map and reduce are explained in this video.
Presentation Link:- https://www.slideshare.net/RahulMalho...
Chapters:
0:00 Introduction
1:12 What are JavaScript Arrays?
2:18 Basics of JavaScript Arrays
8:02 Push, Pop, Unshift, Shift basic functions
9:06 Push function
10:14 Pop function
11:12 Unshift function
13:00 Shift function
14:50 isArray, reverse, forEach, concat basic functions
16:20 isArray function
17:19 reverse function
18:06 forEach function
21:19 concat function
23:50 find, findIndex, filter, sort advanced functions
26:15 find function
32:20 findIndex function
33:13 filter function
34:53 sort function
40:23 Q&A
41:06 splice, map, reduce advanced functions
43:18 splice function
48:02 map function
52:03 reduce function
56:18 Q&A
1:00:12 spread operator
1:00:55 without spread operator
1:06:30 creating a copy with spread operator
1:08:30 creating a copy using JSON.stringify and JSON.parse
1:10:24 Q&A
1:11:41 concatenating two arrays using spread operator
1:13:35 rest parameter
1:17:16 String to array and array to string using join and split functions
1:18:10 string to array using split function
1:20:23 array to string using join function
1:22:12 Q&A
1:23:50 JSON.parse and JSON.stringify - when to use what in terms of Salesforce
1:30:36 Q&A
1:31:18 References
Code Snippets:-
JavaScript Arrays Basic:- https://gist.github.com/rahulmalhotra...
JavaScript Array Basic Methods:- https://gist.github.com/rahulmalhotra...
JavaScript Array Advanced Methods:- https://gist.github.com/rahulmalhotra...
JavaScript Array Session Bonus:- https://gist.github.com/rahulmalhotra...
Subscribe to SFDC Stop:- https://www.youtube.com/c/sfdcstop?su...
JavaScript Tutorial Series:- • JavaScript Tutorial Series
LWC Todo App Project Tutorial Series - • Simplifying the Callouts in Salesforc...
Interested in learning about Scratch Orgs and SFDX ? Have a look at the playlist:- • Getting started with Scratch Orgs and...
Interested in learning about Integration ? Have a look at this playlist:- • Salesforce Integration Tutorial Series