@profiscience/knockout-contrib-observable-fn-increment
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-alpha.8 • Public • Published

@profiscience/knockout-contrib-observable-fn-increment

Version Dependency Status Peer Dependency Status Dev Dependency Status Downloads

NOTE: It is recommended to use the @profiscience/knockout-contrib-observable-fn metapackage

Increments/decrements numeric observables

Usage

import '@profiscience/knockout-contrib-observable-fn/increment'

const foo = ko.observable(0)

foo.increment()   // 1
foo.increment(3)  // 4
foo.decrement()   // 3
foo.decrement(2)  // 1

Package Sidebar

Install

npm i @profiscience/knockout-contrib-observable-fn-increment

Weekly Downloads

1

Version

1.0.0-alpha.8

License

WTFPL

Unpacked Size

7.96 kB

Total Files

10

Last publish

Collaborators

  • dorgeron
  • barsh