js-remapped icon indicating copy to clipboard operation
js-remapped copied to clipboard

Translate objects using dot notated mappings.

Results 3 js-remapped issues
Sort by recently updated
recently updated
newest added

Here is the code ``` var remapped = require('remapped'); var source = { arr: ["0", "1", "2"], }; var mapping = { myarr: 'arr', }; remapped(source, mapping); ``` The result...

Is it possible to avoid creation of properties if values are undefined?

E.g. a mapping of `"geo.latitude": "latitude"` should result in an object like: ``` javascript { "geo": { "latitude": 45.01 } } ```