Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zyhou/fill-array-date
https://github.com/zyhou/fill-array-date
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/zyhou/fill-array-date
- Owner: zyhou
- Created: 2017-09-26T20:04:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-27T16:28:12.000Z (over 7 years ago)
- Last Synced: 2024-11-06T13:47:38.131Z (about 2 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)