神刀安全网

Jezen/is-thirteen: Check if a number is equal to 13

Jezen/is-thirteen: Check if a number is equal to 13

Special thanks to@casdr for the logo

is-thirteen

Jezen/is-thirteen: Check if a number is equal to 13

An npm package to check if a number is equal to 13.

Installation

npm --save i is-thirteen

Usage

var isThirteen = require('is-thirteen');  // PLEAS READ THE SOURCE CODE BECAuse we moved fast and broke things  i̶s̶T̶h̶i̶r̶t̶e̶e̶n̶(̶2̶5̶)̶;̶ ̶/̶/̶ ̶f̶a̶l̶s̶e̶ i̶s̶T̶h̶i̶r̶t̶e̶e̶n̶(̶1̶3̶)̶;̶ ̶/̶/̶ ̶t̶r̶u̶e̶  // Now with elegant syntax.   is(13).thirteen(); // true is(12.8).roughly.thirteen(); // true is(6).within(10).of.thirteen(); // true

Test

npm test

License

WTFPL

A helpful tool by Jezen Thomas with helpful help from Gytis Daujotas and many fine folk.

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » Jezen/is-thirteen: Check if a number is equal to 13

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
分享按钮