Last active
March 28, 2019 03:06
-
-
Save rcdexta/6cedbad46d29ac24045ac76aa5813d23 to your computer and use it in GitHub Desktop.
_.filter vs array.filter
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
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