Closed nusr closed 5 years ago
fix README.md error
function getCurrentEnthusiasm(enthusiasmLevel){ return enthusiasmLevel || 1 } console.log(getCurrentEnthusiasm()) // 1 console.log(getCurrentEnthusiasm(1)) // 1 console.log(getCurrentEnthusiasm(0)) // 1 result should be 0 console.log(getCurrentEnthusiasm(-1)) // -1
@nusr semicolon missed after const { enthusiasmLevel = 1 } = props.
const { enthusiasmLevel = 1 } = props
fix README.md error