PeerTube/shared/core-utils/common/number.ts

8 lines
94 B
TypeScript

function forceNumber (value: any) {
return parseInt(value + '')
}
export {
forceNumber
}