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