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