Hi pals.

I've seen myself in many circunstances needing something to append or
set values to an object in a given path got from a dynamic string.
I mean, each time receive a different string from some function and
then need to populate an object with values at the path given by that
string.

I wrote a function that could be added to MooTools->More->ObjectExtras
if MooTools developers think it worths it.

In fact I got kinda inspired from MooTools->More->ObjectExtras-
>getFromPath to write it. Thanks for that :P

jsFiddle link:
http://jsfiddle.net/Ciul/uqcDR/

Note: Look at the javascript console, it will throw some warnings but
you can see the results anyway.

Judge it by yourself and I'd appreaciate any feedback.

Best regards,
Ciul.

Reply via email to