UNPKG

hardtack

Version:

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

13 lines (9 loc) 255 B
import set from '../set/index.js'; import { merge } from '../utils/index.js'; function remove(name) { const options = merge(arguments[1], { expires: 'Thu, 01 Jan 1970 00:00:01 GMT', }); return set(name, '', options); } export default remove;