npm.io
1.0.1 • Published 6 years ago

is-sixty-nine

Licence
WTFPL
Version
1.0.1
Deps
0
Size
3 kB
Vulns
0
Weekly
0

Installation

npm install is-sixty-nine

Usage

const isSixtyNine = require("is-sixty-nine");

if (isSixtyNine(val)) {//...}

isSixtyNine returns false if the value is not 69, or the conveniently truthy "nice" if it is.

Since we're embracing loose typing, the following values of 69 are accepted:

  • 69
  • "69"
  • "sixty nine" (case insensitive)
  • "sixty-nine" (case insensitive)
  • "LXIX"

Keywords