get method

JSPromise<CookieListItem?> get([
  1. JSAny nameOrOptions
])

@AvailableInWorkers("window_and_service")

The get() method of the CookieStore interface returns a single cookie with the given name or options object. The method will return the first matching cookie for the passed parameters.

Implementation

external JSPromise<CookieListItem?> get([JSAny nameOrOptions]);