UNPKG

@thi.ng/checks

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