jokeyrhyme / node-init.js

impose my will upon a new or existing Node.js project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

use lodash.unionBy with lodash.isEqual to tidy up data manipulation

jokeyrhyme opened this issue · comments

There are a few places in the YAML and JSON manipulation (in particular) where use of the following could result in simpler, tidier code:

Unfortunately, with this combination, lodash.isEqual only works on Objects and not Strings, so the result does not include any String values that it should. /shrug