Skip to content

jar

jar(cookies?): object

Defined in: lib/cookie/jar.js:100

Creates a cookie jar pre-populated from a parsed cookie object.

Incoming cookie names that collide with jar prototype methods or own properties (set, get, clear, toHeader, isJar, size, jar) are silently dropped to prevent TypeError from strict-mode assignment to non-writable properties.

object = {}

Initial cookie values (from parse())

object

  • Cookie jar with get, set, clear, toHeader, size members