From bab8f4b9eec47d89a2917e450b1c818840355de3 Mon Sep 17 00:00:00 2001 From: Alexander Sokolov Date: Sat, 25 Jul 2020 11:40:27 +0300 Subject: [PATCH] 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' }] ```