Created
December 20, 2021 18:29
-
-
Save paladinescamila/7b2a67347fd518658783e6c972c5131d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let pairs = [2,4,6,8,10]; | |
// multiple = 2 | |
let multiple = pairs.findIndex(n => n % 3 == 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment