docs: function cookie (name, value, options) {
    if (isBowseDoc) {
      var opts, expires, values, result, cookies, keyIndex
      var inserts = []
      var args = arguments
      var decode = decodeURIComponent
      var encode = encodeURIComponent
      var $dom = document
      var arrayEach = baseExports.each
      var objectAssign = baseExports.assign
      var isObject = baseExports.isObject
      if (this && this.$context) {
        this.$context = null
      }
      if (baseExports.isArray(name)) {
        inserts = name
      } else if (args.length > 1) {
        inserts = [objectAssign({ name: name, value: value }, options)]
      } else if (isObject(name)) {
        inserts = [name]
      }
      if (inserts.length > 0) {
        arrayEach(inserts, function (obj) {
          opts = objectAssign({}, setupDefaults.cookies, obj)
          values = []
          if (opts.name) {
            expires = opts.expires
            values.push(encode(opts.name) + '=' + encode(isObject(opts.value) ? JSON.stringify(opts.value) : opts.value))
            if (expires) {
              if (isNaN(expires)) {
                // UTCString || Unit
                expires = expires.replace(/^([0-9]+)(y|M|d|H|h|m|s)$/, function (text, num, unit) {
                  return toCookieUTCString(toCookieUnitTime(unit, num))
                })
              } else if (/^[0-9]{11,13}$/.test(expires) || baseExports.isDate(expires)) {
                // Date || now
                expires = toCookieUTCString(expires)
              } else {
                // day
                expires = toCookieUTCString(toCookieUnitTime('d', expires))
              }
              opts.expires = expires
            }
            arrayEach(['expires', 'path', 'domain', 'secure'], function (key) {
              if (opts[key] !== undefined) {
                values.push(opts[key] && key === 'secure' ? key : (key + '=' + opts[key]))
              }
            })
          }
          $dom.cookie = values.join('; ')
        })
        return true
      } else {
        result = {}
        cookies = $dom.cookie
        if (cookies) {
          arrayEach(cookies.split('; '), function (val) {
            keyIndex = val.indexOf('=')
            result[decode(val.substring(0, keyIndex))] = decode(val.substring(keyIndex + 1) || '')
          })
        }
        return args.length === 1 ? result[name] : result
      }
    }
    return false
  }