Created
July 24, 2018 12:23
-
-
Save kmagiera/50e789a40d8bdcacafe87153362836a8 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
let currenUser = { id: 123, name: 'Rob Stark' }; | |
const filterMyTodos = (todo) => { | |
return item.authorID == currenUser.id; | |
} | |
const myTodos = todos.filter(filterMyTodos) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment