MCPcopy Create free account
hub / github.com/dropbox/hackpad / callsyncIfTrue

Function callsyncIfTrue

infrastructure/framework-src/modules/sync.js:48–56  ·  view source on GitHub ↗

* synchronously calls a no-argument function iff * condition() is true. condition may be called * twice and shouldn't have side-effects.

(obj, condition, f)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

_logFunction · 0.85

Calls 2

callsyncFunction · 0.85
fFunction · 0.70

Tested by

no test coverage detected