mirror of
https://github.com/nodejs/node.git
synced 2026-12-06 10:48:45 -05:00
* install eslint-plugin-markdown * add doc/.eslintrc.yaml * add `<!-- eslint-disable rule -->` or `<!-- eslint-disable -->` for the rest of problematic code * .js files in doc folder added to .eslintignore * update Makefile and vcbuild.bat PR-URL: https://github.com/nodejs/node/pull/12563 Refs: https://github.com/nodejs/node/pull/12557#issuecomment-296015032 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
1.1 KiB
1.1 KiB
is-decimal

Check if a character is decimal.
Installation
npm:
npm install is-decimal
Usage
Dependencies:
var decimal = require('is-decimal');
decimal('0'); // true
decimal('9'); // true
decimal('a'); // false
decimal('💩'); // false
API
decimal(character)
Check whether the given character code (number), or the character
code at the first position (string), is decimal.