Created
December 24, 2020 00:16
-
-
Save kwoncharles/20851c79a2a782884d4d650e5a53258b to your computer and use it in GitHub Desktop.
IoC Filter example
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
| // 일반 filter | |
| const dogs = filterDogs(animals) | |
| // 제어역전 filter | |
| const dogs = animals.filter(animal => animal.species === 'dog') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment