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

8 lines
94 B
TypeScript
Raw Normal View History

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