Change console.log for errors and warnings #1375

Merged
merged 1 commit into from Jan 11, 2017

Projects

None yet

3 participants

@jimmyhmiller
Contributor
jimmyhmiller commented Jan 11, 2017 edited

Array.forEach is passed the following parameters:

currentValue
The current element being processed in the array.
index
The index of the current element being processed in the array.
array

console.log takes multiple arguments. We only want to print the first one, the actual message.

@jimmyhmiller jimmyhmiller Change console.log for errors and warnings
Array.forEach is passed the following parameters:

currentValue
    The current element being processed in the array.
index
    The index of the current element being processed in the array.
array
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach

console.log takes multiple arguments. We only want to print the first one, the actually message.
d28eed2
@gaearon gaearon merged commit 3f6937c into facebookincubator:master Jan 11, 2017

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@gaearon
Contributor
gaearon commented Jan 11, 2017

Thanks.

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