Quotes help make search much faster. Example: "Practice Makes Perfect"

Saturday, May 13, 2017

FreeCodeCamp Finders Keepers Sample Solution


function findElement(arr, func) {
  var filtered = arr.filter(func);
  return filtered[0];
}

findElement([1, 3, 5, 8, 9, 10], function(num) { return num % 2 === 0; });

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts