项目
在 GitHub 查看 
jezen/is-thirteen
关于
检查一个数字是否等于 13。
其他项目实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- +1
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
Special thanks to @casdr for the logo
is-thirteen
An npm package to check if a number is equal to 13.
Installation
npm --save i is-thirteen
or
yarn add is-thirteen
Usage
const 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̶
const is = require('is-thirteen');
// Now with elegant syntax.
is(13).thirteen(); // true
is(12.8).roughly.thirteen(); // true
is(6).within(10).of.thirteen(); // true
is(2011).yearOfBirth(); // true
// check your math skillz
is(4).plus(5).thirteen(); // false
is(12).plus(1).thirteen(); // true
is(4).minus(12).thirteen(); // false
is(14).minus(1).thirteen(); // true
is(1).times(8).thirteen(); // false
is(26).divideby(2).thirteen(); // true
Test
npm test
License
A helpful tool by Jezen Thomas with helpful help from Gytis Daujotas and many fine folk.
探索相关项目
加载中…