1.0.0 • Published 10 years ago
is-valid-month v1.0.0
is-valid-month 
Check if a number is a valid month
Install
$ npm install --save is-valid-monthUsage
var isValidMonth = require('is-valid-month');
isValidMonth(1) // true
isValidMonth('1') // falseAPI
isValidMonth(month) -> boolean
month
Required
Type: number
The month is only valid if it is an integer between 1 and 12. Any other values are invalid, including strings and floats.
License
MIT © Ben Drucker
1.0.0
10 years ago