assignDeep
Sets an item or property or items or properties on a list.
list.assignDeep(newProps)
Updates the properties on the list with newProps
. Properties not in newProps
will be left unchanged.
var list = new DefineList(["A","B"]);
list.assign({count: 1, skip: 2});
list.get("count") //-> 1
list.assignDeep({count: 1000});
list.get("count") //-> 1000
list.get("skip") //-> 2
Parameters
- newProps
{Array}
:Properties that need to be assigned to the list instance