Wiki

Clone wiki

aequery / aeq.extend

Given two two or more objects aeq.extend copies all properties from the given objects to the target object.

If only one object is given, the aeq object is assumed to be the target.

example

var objectA = {
    test: "example"
};

aeq.extend( objectA, {
    prop: "prop"
});

// ObjectA is now
{
    test: "example",
    prop: "prop"
}

See https://api.jquery.com/jquery.extend/ for a more explanation, it uses the same api and is basically the same code.

Updated