year-of-rabbit
v1.0.7
Published
Check if is year of Rabbit
Downloads
16
Maintainers
Readme
year-of-rabbit
Check if is year of Rabbit
Install
$ npm install --save year-of-rabbit
Usage
const yearOfRabbit = require('year-of-rabbit');
yearOfRabbit(1987);
// true
yearOfRabbit(1988);
// false
API
yearOfRabbit([year])
year
Type: number
Default: current year
yearOfRabbit([date])
date
Type: date
Default: new Date()
License
MIT © haotian Chang