Page MenuHomePhabricator

[native] Use `Array.some(...)` in `uploadInProgress`
ClosedPublic

Authored by abosh on Aug 19 2022, 2:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 23, 8:04 PM
Unknown Object (File)
Thu, Jun 20, 12:26 PM
Unknown Object (File)
Thu, Jun 13, 6:11 AM
Unknown Object (File)
Thu, Jun 13, 5:50 AM
Unknown Object (File)
Sat, Jun 8, 6:42 AM
Unknown Object (File)
Mon, May 27, 9:45 AM
Unknown Object (File)
Mon, May 27, 9:45 AM
Unknown Object (File)
Mon, May 27, 9:40 AM
Subscribers

Details

Summary

Depends on D4890. Minor change that avoids another level of indentation/for loop by using Array.some(...).

Test Plan

Flow, close reading.

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

tomek added inline comments.
native/input/input-state-container.react.js
376–378

Using Object.values might simplify it even further

This revision is now accepted and ready to land.Aug 25 2022, 2:26 AM
abosh added inline comments.
native/input/input-state-container.react.js
376–378

image.png (472×2 px, 197 KB)

Unfortunately Flow complains, but it is much cleaner!

native/input/input-state-container.react.js
376–378

You can use values in lib/utils/objects.js

This revision was automatically updated to reflect the committed changes.
abosh marked an inline comment as done.