2.0.1 • Published 4 years ago
@profiscience/knockout-contrib-utils-increment v2.0.1
utils.increment / utils.decrement
This package is intended for consumption via the @profiscience/knockout-contrib metapackage.
Increments/decrements a numeric observable. Returns the new value.
Usage
import { increment, decrement } from '@profiscience/knockout-contrib'
const foo = ko.observable(0)
increment(foo) // 1
increment(foo, 3) // 4
decrement(foo) // 3
decrement(foo, 2) // 1
2.0.1
4 years ago
2.0.0
5 years ago
2.0.0-rc.3
6 years ago
2.0.0-rc.2
6 years ago
2.0.0-rc.1
6 years ago
2.0.0-alpha.54341a5d
6 years ago
2.0.0-rc.0
6 years ago
1.0.1
6 years ago