setExtra(key, extra)
Sets (replaces existing) extra.
Arguments
key
(string): Key to store the extra under (represents given item).extra
(object): Extra data to replace existing one.
Returns
(object): The extra
part of Item - here, the very same that was passed to be set.
(undefined): If item is not found (thus no extra can be added), returns undefined
.
Example
Last updated