diff --git a/umd/isEq.js b/umd/isEq.js index 83f8ece..22cabb9 100644 --- a/umd/isEq.js +++ b/umd/isEq.js @@ -42,7 +42,8 @@ var isEq = function isEq(item1, item2, compareKeys) { if (item1 instanceof RegExp) return String(item1) === String(item2); // If none of the above conditions returned, then check if inputs are handlable - if ((typeof item1 === 'undefined' ? 'undefined' : _typeof(item1)) !== 'object' || (typeof item2 === 'undefined' ? 'undefined' : _typeof(item2)) !== 'object') throw new Error('[isEq] Unhandleable input!'); + // If they're not, fall back to strict equality + if ((typeof item1 === 'undefined' ? 'undefined' : _typeof(item1)) !== 'object' || (typeof item2 === 'undefined' ? 'undefined' : _typeof(item2)) !== 'object') return item1 === item2; var item1Keys = Object.keys(item1); var item2Keys = Object.keys(item2); diff --git a/umd/isEq.min.js b/umd/isEq.min.js index 01a1a18..43ff675 100644 --- a/umd/isEq.min.js +++ b/umd/isEq.min.js @@ -1 +1 @@ -(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.isEq=f()}})(function(){var define,module,exports;return function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o