ai-stories-factory / src /lib /utils /isValidNumber.ts
jbilcke-hf's picture
jbilcke-hf HF staff
making progress on the AI Stories Factory
6821e3e
raw
history blame
137 Bytes
export function isValidNumber(input: any) {
return (
typeof (input) === "number" &&
isFinite(input) &&
!isNaN(input)
)
}