Travis build: 1282

This commit is contained in:
30secondsofcode
2018-01-17 17:41:21 +00:00
parent b8f4db77c7
commit 734b9ad087
2 changed files with 26 additions and 26 deletions

View File

@ -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