JSFiddle - React, Tailwind, and code Playground

by Hugo Carneiro

JavaScript

var val = "asd";
console.log(/^\d+$/.test(val));