const notify = (msg, { type = 'info', timeout, close = true } = {}) => { // display notification } notify('Hi!') notify('Hi!', { type: 'error' }) notify('Hi!', { type: 'warn', close: false })
const notify = (msg, { type = 'info', timeout, close = true } = {}) => { // display notification } notify('Hi!') notify('Hi!', { type: 'error' }) notify('Hi!', { type: 'warn', close: false })