toggle-boolean

1.0.0 • Public • Published

toggle-boolean license Travis npm

This library defines the .toggle() method on a Boolean, returning its inverse value in an efficient manner.

import 'toggle-boolean'
 
const myBoolean = true
console.log(myBoolean.toggle()) // "false"

Readme

Keywords

Package Sidebar

Install

npm i toggle-boolean

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

3.04 kB

Total Files

6

Last publish

Collaborators

  • rhysforyou