underscore-is-integer

1.0.6 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i underscore-is-integer

Weekly Downloads

5

Version

1.0.6

License

ISC

Last publish

Collaborators

  • mikeyhogarth