for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
export default function getWeight(weight) {
return (weight || weight === 0) ? parseFloat(weight) : 1
}