diff --git a/dist/fix/fix.compact.js b/dist/fix/fix.compact.js index 837e51dec5..b889edb023 100644 --- a/dist/fix/fix.compact.js +++ b/dist/fix/fix.compact.js @@ -80,11 +80,11 @@ "mapObject", "findKey", "pick", "omit", "tap"], function (name) { var old = BI[name] BI[name] = function (obj, fn) { - return old(obj, function (key, value) { + return typeof fn === "function" ? old(obj, function (key, value) { if (!(key in Fix.$$skipArray)) { return fn.apply(null, arguments); } - }); + }) : old.apply(null, arguments); } }); }()); \ No newline at end of file