Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
jbilcke-hf
/
ai-tube
like
280
Running
on
CPU Upgrade
App
Files
Files
Community
9
8101ed0
ai-tube
/
src
/
lib
/
utils
/
isValidNumber.ts
jbilcke
working to improve the clap format
f42b4a1
7 months ago
raw
Copy download link
history
blame
Safe
137 Bytes
export
function
isValidNumber
(
input:
any
) {
return
(
typeof
(input) ===
"number"
&&
isFinite
(input) &&
!
isNaN
(input)
)
}