Skip to content

Scott Bouchard Redux-Weather eval#86

Open
holdwhatdoor wants to merge 4 commits intoprojectshft:masterfrom
holdwhatdoor:master
Open

Scott Bouchard Redux-Weather eval#86
holdwhatdoor wants to merge 4 commits intoprojectshft:masterfrom
holdwhatdoor:master

Conversation

@holdwhatdoor
Copy link

No description provided.


// checks that returned api call data array is not empty then assigns variable values
if (forecasts.forecasts.forecasts.length !== 0) {
searchedCity = forecasts.forecasts.forecasts[0].city.name;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would recommend not to hard code an index like this, use array method to find the value you need instead


/**
* Function to render a Sparklines visual graph of input array plot points
* with median line for average of array
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice job on the documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants