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

0.0.3 • Public • Published

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

Version Dependency Status Peer Dependency Status Dev Dependency Status Downloads

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

toggles/decrements numeric observables

Usage

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

const foo = ko.observable(true)

foo.toggle()  // false
foo.toggle()  // true

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

    Package Sidebar

    Install

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

    Weekly Downloads

    2

    Version

    0.0.3

    License

    WTFPL

    Unpacked Size

    5.44 kB

    Total Files

    10

    Last publish

    Collaborators

    • dorgeron
    • barsh