Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zyhou/fill-array-date


https://github.com/zyhou/fill-array-date

Last synced: 8 days ago
JSON representation

Awesome Lists containing this project

README

        

# fill-array-date

Fill dates in an array containing range of dates.

```javascript
const arrayDate = [{ str: "foo", date: new Date("2017-08-31") }];
const result = fillArrayDate(arrayDate);

// result :
//[{str: "foo", date: new Date("2017-08-31")},
// {str: "foo", date: new Date("2017-09-30")}
//];
```

You can see other example in [index.spec.js](/index.spec.js)