Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<script type="text/typescript" src="/typescript/5iUFmrAcB5201943767.ts"></script>
<script src="https://rawgit.com/Microsoft/TypeScript/master/lib/typescriptServices.js"></script>
<script src="https://rawgit.com/basarat/typescript-script/master/transpiler.js"></script>
</head>
<body>
</body>
</html>
// 5iUFmrAcB5201943767.ts
var str = new String("I am 31 years old!");
var matches = str.match(/\d+/g);
if (matches != null) {
document.body.innerHTML = `<div>${"a number"}</div>`
}
else
{
document.body.innerHTML = `<div>${"not a number"}</div>`
}
The most helpful TYPESCRIPT solutions
get client ip address using typescriptTYPESCRIPT Click to see more ... 6.3K 243