Travis build: 1282
This commit is contained in:
46
README.md
46
README.md
@ -98,7 +98,6 @@ average(1, 2, 3);
|
||||
* [`deepFlatten`](#deepflatten)
|
||||
* [`difference`](#difference)
|
||||
* [`differenceWith`](#differencewith)
|
||||
* [`distinctValuesOfArray`](#distinctvaluesofarray)
|
||||
* [`dropElements`](#dropelements)
|
||||
* [`dropRight`](#dropright)
|
||||
* [`everyNth`](#everynth)
|
||||
@ -140,6 +139,7 @@ average(1, 2, 3);
|
||||
* [`take`](#take)
|
||||
* [`takeRight`](#takeright)
|
||||
* [`union`](#union)
|
||||
* [`uniqueElements`](#uniqueelements)
|
||||
* [`without`](#without)
|
||||
* [`zip`](#zip)
|
||||
* [`zipObject`](#zipobject)
|
||||
@ -710,28 +710,6 @@ differenceWith([1, 1.2, 1.5, 3, 0], [1.9, 3, 0], (a, b) => Math.round(a) === Mat
|
||||
<br>[⬆ Back to top](#table-of-contents)
|
||||
|
||||
|
||||
### distinctValuesOfArray
|
||||
|
||||
Returns all the distinct values of an array.
|
||||
|
||||
Use ES6 `Set` and the `...rest` operator to discard all duplicated values.
|
||||
|
||||
```js
|
||||
const distinctValuesOfArray = arr => [...new Set(arr)];
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>Examples</summary>
|
||||
|
||||
```js
|
||||
distinctValuesOfArray([1, 2, 2, 3, 4, 4, 5]); // [1,2,3,4,5]
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
<br>[⬆ Back to top](#table-of-contents)
|
||||
|
||||
|
||||
### dropElements
|
||||
|
||||
Removes elements in an array until the passed function returns `true`. Returns the remaining elements in the array.
|
||||
@ -1815,6 +1793,28 @@ union([1, 2, 3], [4, 3, 2]); // [1,2,3,4]
|
||||
<br>[⬆ Back to top](#table-of-contents)
|
||||
|
||||
|
||||
### uniqueElements
|
||||
|
||||
Returns all unique values of an array.
|
||||
|
||||
Use ES6 `Set` and the `...rest` operator to discard all duplicated values.
|
||||
|
||||
```js
|
||||
const uniqueElements = arr => [...new Set(arr)];
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>Examples</summary>
|
||||
|
||||
```js
|
||||
uniqueElements([1, 2, 2, 3, 4, 4, 5]); // [1,2,3,4,5]
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
<br>[⬆ Back to top](#table-of-contents)
|
||||
|
||||
|
||||
### without
|
||||
|
||||
Filters out the elements of an array, that have one of the specified values.
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user