underscore-is-integer
v1.0.6
Published
Underscore mixin for checking a variable represents a whole number.
Downloads
25
Readme
Underscore isInteger
Underscore mixin for checking a variable represents a whole number.
Getting Started
In the browser;
<script src = "path/to/underscore-min.js" type = "text/javascript"></script>
<script src = "path/to/underscore.isInteger.min.js"></script>
In Node;
var _ = require('underscore');
_.mixin require('underscore-is-integer');
Usage
_.isInteger(1) // true
_.isInteger(1.1) // false
See tests for further examples.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request