Skip to content

Commit ed495c6

Browse files
authored
Merge pull request #11 from hckrnews/feature/array-with-object-diff
Add multiple intersection image
2 parents ef8ff39 + 2c4bf0b commit ed495c6

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,12 @@ var c = ['Luke', 'Paul', 'John'];
221221
a.intersect(b);
222222

223223
['Peter', 'Luke']
224+
```
224225

226+
To compute the intersection of multiple arrays, you can send an array and set the 2nd parameter to true.
225227

228+
![Intersection multiple](./images/intersect-multi.png)
229+
```javascript
226230
a.intersect([b, c], true);
227231

228232
['Luke']

images/intersect-multi.png

11 KB
Loading

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hckrnews/arrays",
3-
"version": "2.1.3",
3+
"version": "2.1.4",
44
"description": "Usefull array helpers.",
55
"files": [
66
"src/helpers.js",

0 commit comments

Comments
 (0)