From ed0f5def1152e2491c365d70944e56993f16e565 Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Fri, 31 Jul 2020 09:06:06 +0100 Subject: [PATCH] style: tab to space --- _config.yml | 2 +- .../_posts/dedup-array-object-javascript.md | 22 +++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/_config.yml b/_config.yml index 7348340..f3dda97 100644 --- a/_config.yml +++ b/_config.yml @@ -52,7 +52,7 @@ highlight: enable: true line_number: false auto_detect: false - tab_replace: + tab_replace: ' ' hljs: true wrap: false diff --git a/source/_posts/dedup-array-object-javascript.md b/source/_posts/dedup-array-object-javascript.md index d93e0fd..a4872e6 100644 --- a/source/_posts/dedup-array-object-javascript.md +++ b/source/_posts/dedup-array-object-javascript.md @@ -10,16 +10,16 @@ Let's say you have an array of objects with duplicate entries: ``` js const input = [ - { name: 'lorem', item: 'ipsum' }, - { name: 'per', item: 'doming' }, - { name: 'dolor', item: 'lorem' }, - { name: 'usu', item: 'pericula' }, - { name: 'per', item: 'doming' }, - { item: 'doming', name: 'per' }, - { name: 'dolor', item: 'lorem' }, - { name: 'quem', item: 'graece' }, - { item: 'graece', name: 'quem' }, - { name: 'sonet', item: 'labitur' } + { name: 'lorem', item: 'ipsum' }, + { name: 'per', item: 'doming' }, + { name: 'dolor', item: 'lorem' }, + { name: 'usu', item: 'pericula' }, + { name: 'per', item: 'doming' }, + { item: 'doming', name: 'per' }, + { name: 'dolor', item: 'lorem' }, + { name: 'quem', item: 'graece' }, + { item: 'graece', name: 'quem' }, + { name: 'sonet', item: 'labitur' } ]; ``` @@ -32,7 +32,7 @@ const input = [ { name: 'dolor', item: 'lorem' }, { name: 'usu', item: 'pericula' }, { name: 'per', item: 'doming' }, - { item: 'doming', name: 'per' }, + { item: 'doming', name: 'per' }, { name: 'dolor', item: 'lorem' }, { name: 'quem', item: 'graece' }, { item: 'graece', name: 'quem' },