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

2.0.1 • Public • Published

utils.toggle

Version Dependency Status Peer Dependency Status Dev Dependency Status Downloads

This package is intended for consumption via the [@profiscience/knockout-contrib] metapackage

Toggles a boolean observable

Usage

import { toggle } from '@profiscience/knockout-contrib'

const foo = ko.observable(true)

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

Readme

Keywords

none

Package Sidebar

Install

npm i @profiscience/knockout-contrib-utils-toggle

Weekly Downloads

1

Version

2.0.1

License

WTFPL

Unpacked Size

8.43 kB

Total Files

12

Last publish

Collaborators

  • dorgeron
  • barsh