Travis build: 1682

This commit is contained in:
30secondsofcode
2020-01-05 19:45:57 +00:00
parent c06917d054
commit 80a9ec7a2e
11 changed files with 202 additions and 81 deletions

View File

@ -12,10 +12,9 @@ Return `false` if the counts do not match for any element, `true` otherwise.
```js
const haveSameContents = (a, b) => {
for (const v of new Set([...a, ...b]))
if (a.filter(e => e === v).length !== b.filter(e => e === v).length)
return false;
if (a.filter(e => e === v).length !== b.filter(e => e === v).length) return false;
return true;
}
};
```
```js