Skip to content

scopesigil

Nuno Aguiar edited this page May 22, 2018 · 1 revision

$$

$$(aObject).set(aPath, aNewValue) : Object

Given aObject it will try to parse the aPath a set the corresponding object under that path to aNewValue. Example:

var a = { a : 1, b : { c: 2, d: [0, 1] } };

sprint($$(a).set("b.c", 123); // { a : 1, b : { c: 123, d: [0, 1] } }

Clone this wiki locally