'use strict';

function isIosDevice() {
  const sampleTouchDevices = ['iphone', 'ipad', 'ipod'];
  const matchString = sampleTouchDevices.map(device => `(${device})`).join('|');
  const regex = new RegExp(matchString, 'gi');
  return typeof navigator !== 'undefined' && !!regex.test(navigator.userAgent);
}

exports.isIosDevice = isIosDevice;
//# sourceMappingURL=deviceDetection.js.map
