Feature request: `isDigit`
vorillaz opened this issue · comments
Theodore Vorillas commented
Checks whether the input text contains only digit characters.
Example usage
import isDigit from '@plexis/is-digit';
isDigit('1');
// => true
isDigit('2');
// => true
isEmpty('0xFF');
// => true
isEmpty('5e-2');
// => true
isDigit('0.5e2');
// => true
isEmpty(' ');
// => false
isEmpty('A');
// => false
isEmpty(',.');
// => false
isEmpty('Hello world!');
// => false
isEmpty('Ελληνικά');
// => false
Aliases
import isDigit from '@plexis/is-digit';
import {isDigit} from 'plexis';
Hugo Neves de Carvalho commented
Can I work on this one?
Theodore Vorillas commented
@hugonxc Sure, just create a PR and you are ready to go! Thanks for the effort.
Theodore Vorillas commented
Hugo Neves de Carvalho commented
Ok! I'll look for it!