8 lines
127 B
PowerShell
8 lines
127 B
PowerShell
function isNumeric ($x) {
|
|
try {
|
|
0 + $x | Out-Null
|
|
return $true
|
|
} catch {
|
|
return $false
|
|
}
|
|
}
|