function isEAN(str) {
		  (0, _assertString.default)(str);
		  var actualCheckDigit = Number(str.slice(-1));
		  return validEanRegex.test(str) && actualCheckDigit === calculateCheckDigit(str);
		}
Creates a new EventSource object

@param {String} url the URL to which to connect
@param {Object} [eventSourceInitDict] extra init params. See README for details.
@api public