UNPKG

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