1.0.3 • Published 8 years ago

year-of-dragon v1.0.3

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

year-of-dragon Build Status

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