How to use the fluture.both function in fluture

To help you get started, we’ve selected a few fluture examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Koleok / jest-coverage-ratchet / src / program.js View on Github external
  R.chain(thresholds => F.both(getPackageJsonPath(), F.of(thresholds))),
  R.chain(R.apply(writeFileF))
github Koleok / jest-coverage-ratchet / src / program.js View on Github external
R.chain(([coveragePath, configPath]) =>
    F.both(
      requireF(coveragePath).map(getNewThresholdsFromSummary),
      requireF(configPath).map(getCurrentThresholdsFromConfig)
    )
  ),