npm.io
1.0.0 • Published 10 years ago

@f/string-is-boolean

Licence
MIT
Version
1.0.0
Deps
1
Vulns
0
Weekly
0

string-is-boolean

Build status Git tag NPM version Code style

Check if string looks like a boolean.

Installation

$ npm install @f/string-is-boolean

Usage

var stringIsBoolean = require('@f/string-is-boolean')

stringIsBoolean('true') // => true

API

stringIsBoolean(val)
  • val - string to check

Returns: boolean

License

MIT