Created
September 5, 2017 21:48
-
-
Save zanematthew/68d9381524967b80d3b394f231ecb26e 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
// A | |
return state[item_type].indexOf(item_id) != -1 ? true : false; | |
// B | |
return Boolean(state[item_type].find(items => items === item_id)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment