javascript
javascript copied to clipboard
Update README.md
- Enhance method implementation by returning in a single line rather than using if and else.
- Add support for the default parameter value.