[![Version][npm-version-shield]][npm] [![Dependency Status][david-dm-shield]][david-dm] [![Peer Dependency Status][david-dm-peer-shield]][david-dm-peer] [![Dev Dependency Status][david-dm-dev-shield]][david-dm-dev] [![Downloads][npm-stats-shield]][npm-sta


stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
4211Jun 21, 2021Oct 28, 2017Minified + gzip package size for @profiscience/knockout-contrib-utils-toggle in KB



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


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

const foo = ko.observable(true)

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.