put

fun put(value: JsAny?, key: IDBValidKey = definedExternally): IDBRequest<IDBValidKey>(source)

The put() method of the IDBObjectStore interface updates a given record in a database, or inserts a new record if the given item does not already exist.

MDN Reference