Skip to content

Instantly share code, notes, and snippets.

View amit-srivastava-007's full-sized avatar
😃
enjoying

Amit Srivastava amit-srivastava-007

😃
enjoying
View GitHub Profile
@amit-srivastava-007
amit-srivastava-007 / Range(start, end).js
Last active October 31, 2017 09:44
Create array of object with range start to end
getRange(start, end){
new Array(end - start).fill().map((d, i) => ({ name: i + start, id: i + start }))
}