observ-every
v1.0.1
Published
Represent a set of observs as one boolean, saying whether they are all truthy
Downloads
15
Maintainers
Readme
observ-every
Return a computed observ representing whether all the given observs are truthy
Install
$ npm install --save observ-every
Usage
var Observ = require('observ')
var ObservEvery = require('observ-every')
var first = Observ(true)
var second = Observc(false)
var every = ObservEvery(first, second)
every() // => false
second.set(true)
every() // => true
API
ObservEvery(observ...|Array<observ>)
-> observEvery
Given an array of or splat of observs, return a read-only observable that will evaluate to true if every of the given observablers is truthy.
License
MIT © Andrew Joslin