v0.14 π
Pre-release
Pre-release
π Features
- Add new method
some
#20 (@sergeysova)
const $width = createStore(440);
const $height = createStore(820);
const $tooBig = some((size) => size > 800, [$width, $height]);
console.assert(true === $tooBig.getState());
- Add new method
every
#18 (@sergeysova)
const $isPasswordCorrect = createStore(true);
const $isEmailCorrect = createStore(true);
const $isFormCorrect = every(true, [$isPasswordCorrect, $isEmailCorrect]);
console.assert(true === $isFormCorrect.getState());
condition({
source,
if: condition1,
then: unit1,
else: condition({
if: condition2,
then: unit2,
else: unit3,
})
})