Last active
September 10, 2020 18:37
-
-
Save Chesare22/bafd10f0cd0f12e9ba24be23e4050fd8 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
const numbers = [5, 8, 1, 0, 10, -4]; | |
// Tanto usingFunction como usingArrow resultan en [5, 8, 10] | |
const usingFunction = numbers.filter(function(number){ | |
return number > 3; | |
}); | |
const usingArrow = numbers.filter(number => number > 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment