ramda#complement JavaScript Examples

The following examples show how to use ramda#complement. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: staking_payouts.js    From sdk with MIT License 6 votes vote down vote up
getUnclaimedStashesEras = curry((api, { eras }, stashIds$) =>
  // Concurrently get unclaimed eras for each of stashes
  stashIds$.pipe(
    mergeMap(
      (stashId) =>
        from(getUnclaimedStashEras(api, eras, stashId)).pipe(
          // Filter out stashes with no unclaimed eras
          filterRx(complement(isEmpty)),
          mapRx(assoc("eras", __, { stashId }))
        ),
      ConcurrentRequestsLimit
    )
  )
)
Example #2
Source File: logic.js    From web with GNU General Public License v3.0 5 votes vote down vote up
notEquals = complement(equals)
Example #3
Source File: rendering.js    From web with GNU General Public License v3.0 5 votes vote down vote up
renderWhenNotNil = fn => renderWhen(complement(isNil), fn)
Example #4
Source File: Grid.js    From lundium with MIT License 5 votes vote down vote up
isNotNilNorEmpty = complement(isNilOrEmpty)
Example #5
Source File: isFilled.js    From lundium with MIT License 5 votes vote down vote up
isFilled = complement(isNotFilled)