function wrap(type, operation, fallback) {
  let fn
  try {
    if (hasSupport(type)) {
      const storage = window[type]
      fn = storage[operation].bind(storage)
    }
  } catch(e) {}
  return fn || fallback
}
Wrap localStorage & session storage checks
@param {string} type - localStorage or sessionStorage
@param {string} storageOperation - getItem, setItem, removeItem
@param {function} fallbackFunction - fallback function