Skip to content

Instantly share code, notes, and snippets.

@rcdexta
Last active March 28, 2019 03:06
Show Gist options
  • Save rcdexta/6cedbad46d29ac24045ac76aa5813d23 to your computer and use it in GitHub Desktop.
Save rcdexta/6cedbad46d29ac24045ac76aa5813d23 to your computer and use it in GitHub Desktop.
_.filter vs array.filter
const numbers = [10, 40, 230, 15, 18, 51, 1221]
_.filter(numbers, num => num % 3 === 0)
numbers.filter(num => num % 3 === 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment