collapseNames

convert complex object to simple object

object collapseNames(any obj);
objanysome complex object
objectobject with key-value pairs

Example

var obj = { user: { some: { key: 123 } } }; 
var res = webix.CodeParser.collapseNames(obj);
// res = { "user.some.key" : 123 };

Back to top