Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
jbilcke-hf
/
ai-tube
like
281
Running
on
CPU Upgrade
App
Files
Files
Community
9
24bea92
ai-tube
/
src
/
app
/
server
/
actions
/
utils
/
isValidNumber.ts
jbilcke-hf
HF staff
update
0f35d4c
12 months ago
raw
Copy download link
history
blame
Safe
117 Bytes
export
function
isValidNumber
(
input?:
any
) {
return
typeof
input ===
"number"
&& !
isNaN
(input) &&
isFinite
(input)
}