Swapna Kumar Panda
Swapna Kumar Panda

@swapnakpanda

13 Tweets 1 reads Dec 07, 2022
💎 30 JavaScript Array methods
➤ Learn and master these
➤ In 11 super simple steps
Details inside. ↓
➊ Static Methods
❯ of()
❯ from()
❯ isArray()
➋ Returns Boolean
❯ every()
❯ some()
❯ includes()
➌ Returns Index
❯ indexOf()
❯ lastIndexOf()
❯ findIndex()
➍ Returns new Array
❯ of()
❯ from()
❯ concat()
❯ map()
❯ filter()
❯ slice()
❯ splice()
❯ flat()
❯ flatMap()
➎ Modifies Existing Array
❯ fill()
❯ copyWithin()
❯ pop()
❯ push()
❯ reverse()
❯ shift()
❯ unshift()
❯ splice()
❯ sort()
➏ Iterates through entire Array
❯ forEach()
❯ map()
❯ reduce()
❯ reduceRight()
❯ filter()
❯ flat()
❯ flatMap()
❯ reverse()
❯ sort()
❯ join()
❯ concat()
➐ Iterates Partially
❯ every()
❯ some()
❯ find()
❯ findIndex()
❯ includes()
❯ indexOf()
❯ lastIndexOf()
❯ slice()
❯ splice()
❯ fill()
❯ copyWithin()
➑ Checks Elements "as it is"
❯ indexOf()
❯ lastIndexOf()
❯ includes()
➒ Checks Elements custom way
❯ every()
❯ some()
❯ findIndex()
❯ find()
❯ filter()
➓ Accepts -ve Index
❯ at()
❯ slice()
❯ splice()
➊➊ Accepts a callback
❯ some()
❯ every()
❯ findIndex()
❯ find()
❯ filter()
❯ forEach()
❯ map()
❯ flatMap()
❯ reduce()
❯ reduceRight()
Hey 👋
I am a Tech Writer, Educator, and Mentor from India 🇮🇳, here sharing
✅ Tutorials
✅ Tricks
✅ Career Tips
✅ Cheat Sheets
✅ Practice Questions
✅ Project Ideas
on
➠ Web Development
➠ Data Structures and Algorithms
➠ Databases
Thanks for reading. 🙏

Loading suggestions...