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