From da8e665a297b4c44b5e83b014c437e8a7eb17f9f Mon Sep 17 00:00:00 2001 From: Josh Duff Date: Thu, 24 Oct 2019 11:28:21 -0500 Subject: [PATCH] Fix inconsistent indentation One example was using spaces for indentation. Noticed by @midnightcodr and reported in #174 --- readme.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/readme.md b/readme.md index b6a785a..7dfa920 100644 --- a/readme.md +++ b/readme.md @@ -209,29 +209,29 @@ It may also return undefined, in which case the default merge behaviour will be ```js const alex = { - name: { - first: 'Alex', - last: 'Alexson' - }, - pets: ['Cat', 'Parrot'] + name: { + first: 'Alex', + last: 'Alexson' + }, + pets: ['Cat', 'Parrot'] } const tony = { - name: { - first: 'Tony', - last: 'Tonison' - }, - pets: ['Dog'] + name: { + first: 'Tony', + last: 'Tonison' + }, + pets: ['Dog'] } const mergeNames = (nameA, nameB) => `${nameA.first} and ${nameB.first}` const options = { - customMerge: (key) => { - if (key === 'name') { - return mergeNames - } - } + customMerge: (key) => { + if (key === 'name') { + return mergeNames + } + } } const result = merge(alex, tony, options)