.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / is-decimal / index.js
1 'use strict'
2
3 module.exports = decimal
4
5 // Check if the given character code, or the character code at the first
6 // character, is decimal.
7 function decimal(character) {
8   var code = typeof character === 'string' ? character.charCodeAt(0) : character
9
10   return code >= 48 && code <= 57 /* 0-9 */
11 }