Merge remote-tracking branch 'origin/master'

This commit is contained in:
Angelos Chalaris
2018-06-27 20:26:57 +03:00
7 changed files with 2011 additions and 26 deletions

View File

@ -1,6 +1,6 @@
### unflattenObject
Unlatten an object with the paths for keys.
Unflatten an object with the paths for keys.
Use `Object.keys(obj)` combined with `Array.reduce()` to convert flattened path node to a leaf node.
If the value of a key contains a dot delimiter (`.`), use `Array.split('.')`, string transformations and `JSON.parse()` to create an object, then `Object.assign()` to create the leaf node.