All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.bower_components.cldrjs.src.resource.set.js Maven / Gradle / Ivy

There is a newer version: 1.2.2.1-jre17
Show newest version
define(function () {

    // @path: normalized path
    return function (data, path, value) {
        var i,
            node = data,
            length = path.length;

        for (i = 0; i < length - 1; i++) {
            if (!node[path[i]]) {
                node[path[i]] = {};
            }
            node = node[path[i]];
        }
        node[path[i]] = value;
    };

});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy