can-symbol
Version:
Well known symbols used to detail how to operate on different objects
17 lines (12 loc) • 608 B
Markdown
{function()} can-symbol/symbols/updateValues can.updateValues
can-symbol/symbols/get-set
Add and remove multiple values at once.
`@.updateValues( index, removing, adding )`
The `@@@.updateValues` symbol points to a function that can add
and remove multiple items at once. It's similar to splice, but
is passed an array of items to remove instead of how many items to
be removed.
{*} Anything object with this symbol.
{Number} index
{Array} removing An array of the items to remove.
{Array} adding An Array of the items to add.