UNPKG

underscore.isnumeric

Version:

Adds an isNumeric method to Underscore based on the jQuery.isNumeric implementation.

27 lines (17 loc) 463 B
# Underscore isNumeric > Adds an isNumeric method to the UnderscoreJS library based on the jQuery.isNumeric implementation. ## Install ```bash npm install --save underscore.isnumeric ``` ## Usage ```javascript require('underscore.isnumeric'); _.isNumeric(valueToCheck); ``` ## Running Tests npm test ## Lodash Will attempt to use Lodash if possible, then UnderscoreJS if Lodash is unavailable. ## License [ISC](https://en.wikipedia.org/wiki/ISC_license)