Open hmu332233 opened 4 years ago
Search Keyword is, required
const isRequired = () => { throw new Error('param is required'); }; const print = (num = isRequired()) => { console.log(`printing ${num}`) }; print(2);//printing 2 print()// error print(null)//printing null
Search Keyword is, required