Skip to content

Commit

Permalink
Replace "for..of" with simple "forEach"
Browse files Browse the repository at this point in the history
Apparently there are some issues with this:
facebook/react-native#1499
  • Loading branch information
dcestari committed Nov 19, 2015
1 parent 769fca2 commit d00b6a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Experiment.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ var Experiment = React.createClass({
if (!Array.isArray(children) || children.length < 2) {
return new Error('You must have at least 2 Variants.');
}
for (child of children) {
children.forEach((child) => {
if (!child.type.prototype.isVariant) {
return new Error('One or more children is not a Variant.');
}
}
});
}),
choose: PropTypes.func,
onChoice: PropTypes.func,
Expand Down

0 comments on commit d00b6a8

Please sign in to comment.