year-of-dragon
v1.0.3
Published
Check if is year of Dragon
Downloads
5
Maintainers
Readme
year-of-dragon
Check if is year of Dragon
Install
$ npm install --save year-of-dragon
Usage
const yearOfDragon = require('year-of-dragon');
yearOfDragon(1988);
// true
yearOfDragon(1989);
// false
API
yearOfDragon([year])
year
Type: number
Default: current year
yearOfDragon([date])
date
Type: date
Default: new Date()
License
MIT © haotian Chang