createItem(key, value, [extra])
Creates an item.
Arguments
value
(any): value that is to be stored. See values.extra
(object): extra data, optional. Will default to empty object if not passed{}
. See item's structure for more info.
Throws
If
extra
is not passed as an object, it will throw an error'extra' must be an object.
Returns
(Item): Created item.
Example
Last updated