Created
February 14, 2020 12:35
-
-
Save tehvicke/52df590ce4701f4824315ef7ddf099f9 to your computer and use it in GitHub Desktop.
List thought function
This file contains 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 listThoughts = Thought => number => { | |
return Thought.find({}) | |
.sort({ _id: 'desc' }) | |
.limit(number) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment