fix type and make strict equal

This commit is contained in:
catchonme
2018-06-23 18:46:47 +08:00
parent a387a4d6f7
commit 770922a9d2
3 changed files with 40 additions and 40 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.