Created
December 23, 2018 12:46
-
-
Save ragmha/3e061ed5f9c8be01a66deb83c2007355 to your computer and use it in GitHub Desktop.
WIP: utility funcs
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 getItems = (count) => | |
Array.from({ length: count }, (v, k) => k) | |
.map(k => ({ id: `items-${k}`, content: `item ${k}`})); | |
console.log(getItems(10)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment