Depends on D4890. Minor change that avoids another level of indentation/for loop by using Array.some(...).
Details
Details
Flow, close reading.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
native/input/input-state-container.react.js | ||
---|---|---|
376–378 ↗ | (On Diff #15798) | Using Object.values might simplify it even further |
native/input/input-state-container.react.js | ||
---|---|---|
376–378 ↗ | (On Diff #15798) | Unfortunately Flow complains, but it is much cleaner! |
native/input/input-state-container.react.js | ||
---|---|---|
376–378 ↗ | (On Diff #15798) | You can use values in lib/utils/objects.js |