Merge pull request #463 from skatcat31/remove/mathMinMax
[FIX #419] remove max and min shims
This commit is contained in:
@ -1,13 +0,0 @@
|
|||||||
### max
|
|
||||||
|
|
||||||
Returns the maximum value out of two or more numbers/arrays.
|
|
||||||
|
|
||||||
Use `Math.max()` combined with the spread operator (`...`) to get the maximum value in the array.
|
|
||||||
|
|
||||||
```js
|
|
||||||
const max = (...arr) => Math.max(...[].concat(...arr));
|
|
||||||
```
|
|
||||||
|
|
||||||
```js
|
|
||||||
max([10, 1, 5]); // 10
|
|
||||||
```
|
|
||||||
@ -1,13 +0,0 @@
|
|||||||
### min
|
|
||||||
|
|
||||||
Returns the minimum value in an array.
|
|
||||||
|
|
||||||
Use `Math.min()` combined with the spread operator (`...`) to get the minimum value in the array.
|
|
||||||
|
|
||||||
```js
|
|
||||||
const min = arr => Math.min(...[].concat(...arr));
|
|
||||||
```
|
|
||||||
|
|
||||||
```js
|
|
||||||
min([10, 1, 5]); // 1
|
|
||||||
```
|
|
||||||
@ -95,12 +95,8 @@ lcm:math
|
|||||||
lowercaseKeys:object
|
lowercaseKeys:object
|
||||||
mapObject:array
|
mapObject:array
|
||||||
mask:string
|
mask:string
|
||||||
max:math
|
|
||||||
maxN:uncategorized
|
|
||||||
median:math
|
median:math
|
||||||
memoize:function
|
memoize:function
|
||||||
min:math
|
|
||||||
minN:uncategorized
|
|
||||||
negate:logic
|
negate:logic
|
||||||
nthElement:array
|
nthElement:array
|
||||||
objectFromPairs:object
|
objectFromPairs:object
|
||||||
|
|||||||
Reference in New Issue
Block a user