[■,■,■,■].map(■ → ●) ⇒ [●,●,●,●]
[■,●,■,▲].filter(■ → true) ⇒ [■,■]
[■,●,■,▲].find(● → true) ⇒ ●
[■,●,■,▲].findIndex(▲ → true) ⇒ 3
[■,●,■,▲].indexOf(● → true) ⇒ 1
[■,●,■,▲].fill(●) ⇒ [●,●,●,●]
[■,●,■,▲].some(● → true) ⇒ true
[■,●,■,▲].every(● → true) ⇒ false
Created
May 31, 2021 09:53
-
-
Save nevergone/3f40b44b6d7616842f8c5a2b3cc7a256 to your computer and use it in GitHub Desktop.
Comprehensive quick reference for Array methods
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment