Created
April 20, 2016 11:44
-
-
Save raytiley/c7714b49d32369c7377bf7e1f08b7d8a 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
export default { | |
add(array, item) { | |
return array.concat([item]); | |
}, | |
remove(array, item) { | |
return array.filter((i) => { | |
return i !== item; | |
}); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment