post(dedup-obj): mention pull request

This commit is contained in:
MDLeom 2020-08-05 08:14:40 +00:00
parent 6f49bd2357
commit 82b006cd95
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 1 additions and 1 deletions

View File

@ -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.