fifty-two-challenge
v2.0.0
Published
## Install
Downloads
5
Readme
fifty-two-challenge
Install
yarn add fifty-two-challenge # npm install fifty-two-challenge
Usage
const { generate } = require('fifty-two-challenge')
generate({
initialValue: 5,
weeks: 4
}) // return a array of weeks
API
generate(options = {})
Generate an array of weeks with corresponding values from each week
Arguments
options
: An object with two fields:
- initialValue: initial value to generate data. Default is 2
- weeks: number of weeks. Default is 52
Returns
- Array of weeks: the week object is a object with value and week fields
Author
Emanuel Gonçalves
- Twitter @emanuelgsouza
- Github @emanuelgsouza