year-of-pig
v1.0.3
Published
Check if is year of Pig
Downloads
4
Maintainers
Readme
year-of-pig
Check if is year of Pig
Install
$ npm install --save year-of-pig
Usage
const yearOfPig = require('year-of-pig');
yearOfPig(1995);
// true
yearOfPig(1996);
// false
API
yearOfPig([year])
year
Type: number
Default: current year
yearOfPig([date])
date
Type: date
Default: new Date()
License
MIT © haotian Chang