set method

JSPromise<JSAny?> set(
  1. JSAny nameOrOptions, [
  2. String value
])

@AvailableInWorkers("window_and_service")

The set() method of the CookieStore interface sets a cookie with the given name and value or options object.

Implementation

external JSPromise<JSAny?> set(
  JSAny nameOrOptions, [
  String value,
]);