1.0.6 • Published 10 years ago

underscore-is-integer v1.0.6

Weekly downloads
3
License
ISC
Repository
github
Last release
10 years ago

Underscore isInteger

Underscore mixin for checking a variable represents a whole number.

npm version Code Climate Build Status Test Coverage

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago