about | help | code help+videos | done | prefs |
Given an array and a key, return an array that contains the locations of all elements that match the key. If no elements match the key, return an array with no elements. findAll([5, 4, 5], 4) → [1] findAll([5, 4, 5], 5) → [0, 2] findAll([5, 4, 5], 6) → [] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 200
Copyright Nick Parlante 2017 - privacy