From bab8f4b9eec47d89a2917e450b1c818840355de3 Mon Sep 17 00:00:00 2001 From: Alexander Sokolov Date: Sat, 25 Jul 2020 11:40:27 +0300 Subject: [PATCH 1/2] Update intersectionBy.md --- snippets/intersectionBy.md | 1 + 1 file changed, 1 insertion(+) diff --git a/snippets/intersectionBy.md b/snippets/intersectionBy.md index 958c18b11..17edc4e2e 100644 --- a/snippets/intersectionBy.md +++ b/snippets/intersectionBy.md @@ -16,4 +16,5 @@ const intersectionBy = (a, b, fn) => { ```js intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor); // [2.1] +intersectionBy([{ title: 'Apple' }, { title: 'Orange' }], [{ title: 'Orange' }, { title: 'Melon' }], item => item.title) // [{ title: 'Orange' }] ``` From a83809529167aa8479c947087a70b0a45e5517e5 Mon Sep 17 00:00:00 2001 From: Isabelle Viktoria Maciohsek Date: Fri, 31 Jul 2020 22:46:29 +0300 Subject: [PATCH 2/2] Update intersectionBy.md --- snippets/intersectionBy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/intersectionBy.md b/snippets/intersectionBy.md index 17edc4e2e..d10ae2b77 100644 --- a/snippets/intersectionBy.md +++ b/snippets/intersectionBy.md @@ -16,5 +16,5 @@ const intersectionBy = (a, b, fn) => { ```js intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor); // [2.1] -intersectionBy([{ title: 'Apple' }, { title: 'Orange' }], [{ title: 'Orange' }, { title: 'Melon' }], item => item.title) // [{ title: 'Orange' }] +intersectionBy([{ title: 'Apple' }, { title: 'Orange' }], [{ title: 'Orange' }, { title: 'Melon' }], x => x.title) // [{ title: 'Orange' }] ```