diff --git a/snippets/intersectionBy.md b/snippets/intersectionBy.md index 958c18b11..d10ae2b77 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' }], x => x.title) // [{ title: 'Orange' }] ```