From 82b006cd951952692611611da60062e5b62fd3e8 Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Wed, 5 Aug 2020 08:14:40 +0000 Subject: [PATCH] post(dedup-obj): mention pull request --- source/_posts/dedup-array-object-javascript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_posts/dedup-array-object-javascript.md b/source/_posts/dedup-array-object-javascript.md index a4872e6..25d67ed 100644 --- a/source/_posts/dedup-array-object-javascript.md +++ b/source/_posts/dedup-array-object-javascript.md @@ -40,7 +40,7 @@ const input = [ ] {% endcodeblock %} -In this case, we can use `Object.fromEntries()` and `Object.entries()` to deal with duplicates. This involves two processes: +In this case, we can use `Object.fromEntries()` and `Object.entries()` to deal with duplicates; I discovered these functions while working on [hexojs/hexo-migrator-wordpress#89](https://github.com/hexojs/hexo-migrator-wordpress/pull/89). This involves two processes: 1. Convert an array of objects to an object. 2. Convert the object back to an array of objects.