:metal: KnockoutJS Goodies Monorepo
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