UNPKG

hardtack

Version:

An ultra-light (373 bytes) library for working with cookies in JavaScript

13 lines (9 loc) 269 B
const set = require('../set/index.cjs'); const { merge } = require('../utils/index.cjs'); function remove(name) { const options = merge(arguments[1], { expires: 'Thu, 01 Jan 1970 00:00:01 GMT', }); return set(name, '', options); } module.exports = remove;