diff --git a/snippets/max.md b/snippets/max.md deleted file mode 100644 index 4d6fe2826..000000000 --- a/snippets/max.md +++ /dev/null @@ -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 -``` diff --git a/snippets/min.md b/snippets/min.md deleted file mode 100644 index c7799694a..000000000 --- a/snippets/min.md +++ /dev/null @@ -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 -``` diff --git a/tag_database b/tag_database index 540368f1d..3c5423390 100644 --- a/tag_database +++ b/tag_database @@ -95,10 +95,8 @@ lcm:math lowercaseKeys:object mapObject:array mask:string -max:math median:math memoize:function -min:math negate:logic nthElement:array objectFromPairs:object