UNPKG

108 BJavaScriptView Raw
1const RE = /^(?:[-+]?(?:0|[1-9][0-9]*))$/;
2const isIntString = (x) => RE.test(x);
3export {
4 isIntString
5};