Travis build: 904
This commit is contained in:
46
README.md
46
README.md
@ -173,9 +173,7 @@
|
|||||||
* [`isEven`](#iseven)
|
* [`isEven`](#iseven)
|
||||||
* [`isPrime`](#isprime)
|
* [`isPrime`](#isprime)
|
||||||
* [`lcm`](#lcm)
|
* [`lcm`](#lcm)
|
||||||
* [`max`](#max)
|
|
||||||
* [`median`](#median)
|
* [`median`](#median)
|
||||||
* [`min`](#min)
|
|
||||||
* [`percentile`](#percentile)
|
* [`percentile`](#percentile)
|
||||||
* [`powerset`](#powerset)
|
* [`powerset`](#powerset)
|
||||||
* [`primes`](#primes)
|
* [`primes`](#primes)
|
||||||
@ -3052,28 +3050,6 @@ lcm([1, 3, 4], 5); // 60
|
|||||||
<br>[⬆ Back to top](#table-of-contents)
|
<br>[⬆ Back to top](#table-of-contents)
|
||||||
|
|
||||||
|
|
||||||
### 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));
|
|
||||||
```
|
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>Examples</summary>
|
|
||||||
|
|
||||||
```js
|
|
||||||
max([10, 1, 5]); // 10
|
|
||||||
```
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<br>[⬆ Back to top](#table-of-contents)
|
|
||||||
|
|
||||||
|
|
||||||
### median
|
### median
|
||||||
|
|
||||||
Returns the median of an array of numbers.
|
Returns the median of an array of numbers.
|
||||||
@ -3102,28 +3078,6 @@ median([0, 10, -2, 7]); // 3.5
|
|||||||
<br>[⬆ Back to top](#table-of-contents)
|
<br>[⬆ Back to top](#table-of-contents)
|
||||||
|
|
||||||
|
|
||||||
### 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));
|
|
||||||
```
|
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>Examples</summary>
|
|
||||||
|
|
||||||
```js
|
|
||||||
min([10, 1, 5]); // 1
|
|
||||||
```
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<br>[⬆ Back to top](#table-of-contents)
|
|
||||||
|
|
||||||
|
|
||||||
### percentile
|
### percentile
|
||||||
|
|
||||||
Uses the percentile formula to calculate how many numbers in the given array are less or equal to the given value.
|
Uses the percentile formula to calculate how many numbers in the given array are less or equal to the given value.
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -95,8 +95,10 @@ lcm:math
|
|||||||
lowercaseKeys:object
|
lowercaseKeys:object
|
||||||
mapObject:array
|
mapObject:array
|
||||||
mask:string
|
mask:string
|
||||||
|
maxN:uncategorized
|
||||||
median:math
|
median:math
|
||||||
memoize:function
|
memoize:function
|
||||||
|
minN:uncategorized
|
||||||
negate:logic
|
negate:logic
|
||||||
nthElement:array
|
nthElement:array
|
||||||
objectFromPairs:object
|
objectFromPairs:object
|
||||||
|
|||||||
Reference in New Issue
Block a user