modified description

This commit is contained in:
Arjun Mahishi
2017-12-20 22:07:30 +05:30
parent de5c1c3fee
commit 1892bd8609

View File

@ -2,7 +2,7 @@
Checks if the given number falls in the given range.
`end` is an optional parameter. If `end` is not given, the range is considered from 0 to start.
`end` is an optional parameter. If `end` is not given, the range is considered from `0` to `start`.
```js
const inRange = (n, start, end=null) => (end == null) ? (n>=0 && n<=start) : (n>=start && n<=end);