i(r,p)&&l.push(p);return f&&c(r),l}function ut(n,t,e,r){r=(r||0)-1;for(var u=n?n.length:0,o=[];++r=b&&f===n,h=u||v?a():s;
+for(v&&(h=o(h),f=t);++if(h,y))&&((u||v)&&h.push(y),s.push(g))}return v?(l(h.k),c(h)):u&&l(h),s}function lt(n){return function(t,e,r){var u={};e=J.createCallback(e,r,3),r=-1;var o=t?t.length:0;if(typeof o=="number")for(;++re?Ie(0,o+e):e)||0,Te(n)?i=-1o&&(o=a)}}else t=null==t&&kt(n)?r:J.createCallback(t,e,3),St(n,function(n,e,r){e=t(n,e,r),e>u&&(u=e,o=n)});return o}function Dt(n,t,e,r){if(!n)return e;var u=3>arguments.length;t=J.createCallback(t,r,4);var o=-1,i=n.length;if(typeof i=="number")for(u&&(e=n[++o]);++oarguments.length;return t=J.createCallback(t,r,4),Et(n,function(n,r,o){e=u?(u=false,n):t(e,n,r,o)}),e}function Tt(n){var t=-1,e=n?n.length:0,r=Xt(typeof e=="number"?e:0);return St(n,function(n){var e=at(0,++t);r[t]=r[e],r[e]=n}),r}function Ft(n,t,e){var r;t=J.createCallback(t,e,3),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++er?Ie(0,u+r):r||0}else if(r)return r=zt(t,e),t[r]===e?r:-1;return n(t,e,r)}function qt(n,t,e){if(typeof t!="number"&&null!=t){var r=0,u=-1,o=n?n.length:0;for(t=J.createCallback(t,e,3);++u>>1,e(n[r])e?0:e);++t=v;
+m?(i&&(i=ve(i)),s=f,a=n.apply(l,o)):i||(i=_e(r,v))}return m&&c?c=ve(c):c||t===h||(c=_e(u,t)),e&&(m=true,a=n.apply(l,o)),!m||c||i||(o=l=null),a}}function Ut(n){return n}function Gt(n,t,e){var r=true,u=t&&bt(t);t&&(e||u.length)||(null==e&&(e=t),o=Q,t=n,n=J,u=bt(t)),false===e?r=false:wt(e)&&"chain"in e&&(r=e.chain);var o=n,i=dt(o);St(u,function(e){var u=n[e]=t[e];i&&(o.prototype[e]=function(){var t=this.__chain__,e=this.__wrapped__,i=[e];if(be.apply(i,arguments),i=u.apply(n,i),r||t){if(e===i&&wt(i))return this;
+i=new o(i),i.__chain__=t}return i})})}function Ht(){}function Jt(n){return function(t){return t[n]}}function Qt(){return this.__wrapped__}e=e?Y.defaults(G.Object(),e,Y.pick(G,A)):G;var Xt=e.Array,Yt=e.Boolean,Zt=e.Date,ne=e.Function,te=e.Math,ee=e.Number,re=e.Object,ue=e.RegExp,oe=e.String,ie=e.TypeError,ae=[],fe=re.prototype,le=e._,ce=fe.toString,pe=ue("^"+oe(ce).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),se=te.ceil,ve=e.clearTimeout,he=te.floor,ge=ne.prototype.toString,ye=vt(ye=re.getPrototypeOf)&&ye,me=fe.hasOwnProperty,be=ae.push,_e=e.setTimeout,de=ae.splice,we=ae.unshift,je=function(){try{var n={},t=vt(t=re.defineProperty)&&t,e=t(n,n,n)&&t
+}catch(r){}return e}(),ke=vt(ke=re.create)&&ke,xe=vt(xe=Xt.isArray)&&xe,Ce=e.isFinite,Oe=e.isNaN,Ne=vt(Ne=re.keys)&&Ne,Ie=te.max,Se=te.min,Ee=e.parseInt,Re=te.random,Ae={};Ae[$]=Xt,Ae[T]=Yt,Ae[F]=Zt,Ae[B]=ne,Ae[q]=re,Ae[W]=ee,Ae[z]=ue,Ae[P]=oe,Q.prototype=J.prototype;var De=J.support={};De.funcDecomp=!vt(e.a)&&E.test(s),De.funcNames=typeof ne.name=="string",J.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:N,variable:"",imports:{_:J}},ke||(nt=function(){function n(){}return function(t){if(wt(t)){n.prototype=t;
+var r=new n;n.prototype=null}return r||e.Object()}}());var $e=je?function(n,t){M.value=t,je(n,"__bindData__",M)}:Ht,Te=xe||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&ce.call(n)==$||false},Fe=Ne?function(n){return wt(n)?Ne(n):[]}:H,Be={"&":"&","<":"<",">":">",'"':""","'":"'"},We=_t(Be),qe=ue("("+Fe(We).join("|")+")","g"),ze=ue("["+Fe(Be).join("")+"]","g"),Pe=ye?function(n){if(!n||ce.call(n)!=q)return false;var t=n.valueOf,e=vt(t)&&(e=ye(t))&&ye(e);return e?n==e||ye(n)==e:ht(n)
+}:ht,Ke=lt(function(n,t,e){me.call(n,e)?n[e]++:n[e]=1}),Le=lt(function(n,t,e){(me.call(n,e)?n[e]:n[e]=[]).push(t)}),Me=lt(function(n,t,e){n[e]=t}),Ve=Rt,Ue=vt(Ue=Zt.now)&&Ue||function(){return(new Zt).getTime()},Ge=8==Ee(d+"08")?Ee:function(n,t){return Ee(kt(n)?n.replace(I,""):n,t||0)};return J.after=function(n,t){if(!dt(t))throw new ie;return function(){return 1>--n?t.apply(this,arguments):void 0}},J.assign=U,J.at=function(n){for(var t=arguments,e=-1,r=ut(t,true,false,1),t=t[2]&&t[2][t[1]]===n?1:r.length,u=Xt(t);++e=b&&o(r?e[r]:s)))}var p=e[0],h=-1,g=p?p.length:0,y=[];n:for(;++h(m?t(m,v):f(s,v))){for(r=u,(m||s).push(v);--r;)if(m=i[r],0>(m?t(m,v):f(e[r],v)))continue n;y.push(v)}}for(;u--;)(m=i[u])&&c(m);return l(i),l(s),y},J.invert=_t,J.invoke=function(n,t){var e=p(arguments,2),r=-1,u=typeof t=="function",o=n?n.length:0,i=Xt(typeof o=="number"?o:0);return St(n,function(n){i[++r]=(u?t:n[t]).apply(n,e)}),i},J.keys=Fe,J.map=Rt,J.mapValues=function(n,t,e){var r={};
+return t=J.createCallback(t,e,3),h(n,function(n,e,u){r[e]=t(n,e,u)}),r},J.max=At,J.memoize=function(n,t){function e(){var r=e.cache,u=t?t.apply(this,arguments):m+arguments[0];return me.call(r,u)?r[u]:r[u]=n.apply(this,arguments)}if(!dt(n))throw new ie;return e.cache={},e},J.merge=function(n){var t=arguments,e=2;if(!wt(n))return n;if("number"!=typeof t[2]&&(e=t.length),3e?Ie(0,r+e):Se(e,r-1))+1);r--;)if(n[r]===t)return r;return-1},J.mixin=Gt,J.noConflict=function(){return e._=le,this},J.noop=Ht,J.now=Ue,J.parseInt=Ge,J.random=function(n,t,e){var r=null==n,u=null==t;return null==e&&(typeof n=="boolean"&&u?(e=n,n=1):u||typeof t!="boolean"||(e=t,u=true)),r&&u&&(t=1),n=+n||0,u?(t=n,n=0):t=+t||0,e||n%1||t%1?(e=Re(),Se(n+e*(t-n+parseFloat("1e-"+((e+"").length-1))),t)):at(n,t)
+},J.reduce=Dt,J.reduceRight=$t,J.result=function(n,t){if(n){var e=n[t];return dt(e)?n[t]():e}},J.runInContext=s,J.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:Fe(n).length},J.some=Ft,J.sortedIndex=zt,J.template=function(n,t,e){var r=J.templateSettings;n=oe(n||""),e=_({},e,r);var u,o=_({},e.imports,r.imports),r=Fe(o),o=xt(o),a=0,f=e.interpolate||S,l="__p+='",f=ue((e.escape||S).source+"|"+f.source+"|"+(f===N?x:S).source+"|"+(e.evaluate||S).source+"|$","g");n.replace(f,function(t,e,r,o,f,c){return r||(r=o),l+=n.slice(a,c).replace(R,i),e&&(l+="'+__e("+e+")+'"),f&&(u=true,l+="';"+f+";\n__p+='"),r&&(l+="'+((__t=("+r+"))==null?'':__t)+'"),a=c+t.length,t
+}),l+="';",f=e=e.variable,f||(e="obj",l="with("+e+"){"+l+"}"),l=(u?l.replace(w,""):l).replace(j,"$1").replace(k,"$1;"),l="function("+e+"){"+(f?"":e+"||("+e+"={});")+"var __t,__p='',__e=_.escape"+(u?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+l+"return __p}";try{var c=ne(r,"return "+l).apply(v,o)}catch(p){throw p.source=l,p}return t?c(t):(c.source=l,c)},J.unescape=function(n){return null==n?"":oe(n).replace(qe,gt)},J.uniqueId=function(n){var t=++y;return oe(null==n?"":n)+t
+},J.all=Ot,J.any=Ft,J.detect=It,J.findWhere=It,J.foldl=Dt,J.foldr=$t,J.include=Ct,J.inject=Dt,Gt(function(){var n={};return h(J,function(t,e){J.prototype[e]||(n[e]=t)}),n}(),false),J.first=Bt,J.last=function(n,t,e){var r=0,u=n?n.length:0;if(typeof t!="number"&&null!=t){var o=u;for(t=J.createCallback(t,e,3);o--&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n?n[u-1]:v;return p(n,Ie(0,u-r))},J.sample=function(n,t,e){return n&&typeof n.length!="number"&&(n=xt(n)),null==t||e?n?n[at(0,n.length-1)]:v:(n=Tt(n),n.length=Se(Ie(0,t),n.length),n)
+},J.take=Bt,J.head=Bt,h(J,function(n,t){var e="sample"!==t;J.prototype[t]||(J.prototype[t]=function(t,r){var u=this.__chain__,o=n(this.__wrapped__,t,r);return u||null!=t&&(!r||e&&typeof t=="function")?new Q(o,u):o})}),J.VERSION="2.4.1",J.prototype.chain=function(){return this.__chain__=true,this},J.prototype.toString=function(){return oe(this.__wrapped__)},J.prototype.value=Qt,J.prototype.valueOf=Qt,St(["join","pop","shift"],function(n){var t=ae[n];J.prototype[n]=function(){var n=this.__chain__,e=t.apply(this.__wrapped__,arguments);
+return n?new Q(e,n):e}}),St(["push","reverse","sort","unshift"],function(n){var t=ae[n];J.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),St(["concat","slice","splice"],function(n){var t=ae[n];J.prototype[n]=function(){return new Q(t.apply(this.__wrapped__,arguments),this.__chain__)}}),J}var v,h=[],g=[],y=0,m=+new Date+"",b=75,_=40,d=" \t\x0B\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",w=/\b__p\+='';/g,j=/\b(__p\+=)''\+/g,k=/(__e\(.*?\)|\b__t\))\+'';/g,x=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,C=/\w*$/,O=/^\s*function[ \n\r\t]+\w/,N=/<%=([\s\S]+?)%>/g,I=RegExp("^["+d+"]*0+(?=.$)"),S=/($^)/,E=/\bthis\b/,R=/['\n\r\t\u2028\u2029\\]/g,A="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setTimeout".split(" "),D="[object Arguments]",$="[object Array]",T="[object Boolean]",F="[object Date]",B="[object Function]",W="[object Number]",q="[object Object]",z="[object RegExp]",P="[object String]",K={};
K[B]=false,K[D]=K[$]=K[T]=K[F]=K[W]=K[q]=K[z]=K[P]=true;var L={leading:false,maxWait:0,trailing:false},M={configurable:false,enumerable:false,value:null,writable:false},V={"boolean":false,"function":true,object:true,number:false,string:false,undefined:false},U={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},G=V[typeof window]&&window||this,H=V[typeof exports]&&exports&&!exports.nodeType&&exports,J=V[typeof module]&&module&&!module.nodeType&&module,Q=J&&J.exports===H&&H,X=V[typeof global]&&global;!X||X.global!==X&&X.window!==X||(G=X);
var Y=s();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(G._=Y, define(function(){return Y})):H&&J?Q?(J.exports=Y)._=Y:H._=Y:G._=Y}).call(this);
\ No newline at end of file
diff --git a/dist/lodash.underscore.js b/dist/lodash.underscore.js
index 26f8977586..0c84471f5d 100644
--- a/dist/lodash.underscore.js
+++ b/dist/lodash.underscore.js
@@ -1,6 +1,6 @@
/**
* @license
- * Lo-Dash 2.4.0 (Custom Build)
+ * Lo-Dash 2.4.1 (Custom Build)
* Build: `lodash underscore exports="amd,commonjs,global,node" -o ./dist/lodash.underscore.js`
* Copyright 2012-2013 The Dojo Foundation
* Based on Underscore.js 1.5.2
@@ -215,11 +215,11 @@
propertyIsEnumerable = objectProto.propertyIsEnumerable;
/* Native method shortcuts for methods with the same name as other `lodash` methods */
- var nativeCreate = reNative.test(nativeCreate = Object.create) && nativeCreate,
- nativeIsArray = reNative.test(nativeIsArray = Array.isArray) && nativeIsArray,
+ var nativeCreate = isNative(nativeCreate = Object.create) && nativeCreate,
+ nativeIsArray = isNative(nativeIsArray = Array.isArray) && nativeIsArray,
nativeIsFinite = root.isFinite,
nativeIsNaN = root.isNaN,
- nativeKeys = reNative.test(nativeKeys = Object.keys) && nativeKeys,
+ nativeKeys = isNative(nativeKeys = Object.keys) && nativeKeys,
nativeMax = Math.max,
nativeMin = Math.min,
nativeRandom = Math.random;
@@ -402,7 +402,10 @@
// `Function#bind` spec
// http://es5.github.io/#x15.3.4.5
if (partialArgs) {
- var args = partialArgs.slice();
+ // avoid `arguments` object deoptimizations by using `slice` instead
+ // of `Array.prototype.slice.call` and not assigning `arguments` to a
+ // variable as a ternary expression
+ var args = slice(partialArgs);
push.apply(args, arguments);
}
// mimic the constructor's `return` behavior
@@ -504,7 +507,7 @@
function bound() {
var thisBinding = isBind ? thisArg : this;
if (partialArgs) {
- var args = partialArgs.slice();
+ var args = slice(partialArgs);
push.apply(args, arguments);
}
if (partialRightArgs || isCurry) {
@@ -690,22 +693,25 @@
}
}
}
- return result;
}
- forIn(b, function(value, key, b) {
- if (hasOwnProperty.call(b, key)) {
- size++;
- return !(result = hasOwnProperty.call(a, key) && baseIsEqual(a[key], value, stackA, stackB)) && indicatorObject;
- }
- });
-
- if (result) {
- forIn(a, function(value, key, a) {
- if (hasOwnProperty.call(a, key)) {
- return !(result = --size > -1) && indicatorObject;
+ else {
+ forIn(b, function(value, key, b) {
+ if (hasOwnProperty.call(b, key)) {
+ size++;
+ return !(result = hasOwnProperty.call(a, key) && baseIsEqual(a[key], value, stackA, stackB)) && indicatorObject;
}
});
+
+ if (result) {
+ forIn(a, function(value, key, a) {
+ if (hasOwnProperty.call(a, key)) {
+ return !(result = --size > -1) && indicatorObject;
+ }
+ });
+ }
}
+ stackA.pop();
+ stackB.pop();
return result;
}
@@ -858,6 +864,17 @@
return result;
}
+ /**
+ * Checks if `value` is a native function.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if the `value` is a native function, else `false`.
+ */
+ function isNative(value) {
+ return typeof value == 'function' && reNative.test(value);
+ }
+
/**
* Used by `unescape` to convert HTML entities to characters.
*
@@ -4324,7 +4341,7 @@
* _.defer(function() { console.log(_.now() - stamp); });
* // => logs the number of milliseconds it took for the deferred function to be called
*/
- var now = reNative.test(now = Date.now) && now || function() {
+ var now = isNative(now = Date.now) && now || function() {
return new Date().getTime();
};
@@ -4892,7 +4909,7 @@
* @memberOf _
* @type string
*/
- lodash.VERSION = '2.4.0';
+ lodash.VERSION = '2.4.1';
// add "Chaining" functions to the wrapper
lodash.prototype.chain = wrapperChain;
diff --git a/dist/lodash.underscore.min.js b/dist/lodash.underscore.min.js
index 6f9fcd8a82..e659124478 100644
--- a/dist/lodash.underscore.min.js
+++ b/dist/lodash.underscore.min.js
@@ -1,39 +1,39 @@
/**
* @license
- * Lo-Dash 2.4.0 (Custom Build) lodash.com/license | Underscore.js 1.5.2 underscorejs.org/LICENSE
+ * Lo-Dash 2.4.1 (Custom Build) lodash.com/license | Underscore.js 1.5.2 underscorejs.org/LICENSE
* Build: `lodash underscore exports="amd,commonjs,global,node" -o ./dist/lodash.underscore.js`
*/
-;(function(){function n(n,r,t){t=(t||0)-1;for(var e=n?n.length:0;++tf||typeof i=="undefined")return 1;if(it?0:t);++ee(r,i)&&o.push(i)}return o}function p(n,r,t,e){e=(e||0)-1;for(var u=n?n.length:0,o=[];++eu(f,l))&&(t&&f.push(l),i.push(a))}return i}function h(n){return function(r,t,e){var u={};t=Q(t,e,3),e=-1;var o=r?r.length:0;if(typeof o=="number")for(;++eu&&(u=t);
-else r=Q(r,t,3),q(n,function(n,t,o){t=r(n,t,o),t>e&&(e=t,u=n)});return u}function $(n,r,t,e){if(!n)return t;var u=3>arguments.length;r=Q(r,e,4);var o=-1,i=n.length;if(typeof i=="number")for(u&&(t=n[++o]);++oarguments.length;return r=Q(r,e,4),D(n,function(n,e,o){t=u?(u=false,n):r(t,n,e,o)}),t}function z(n){var r=-1,t=n?n.length:0,e=Array(typeof t=="number"?t:0);return q(n,function(n){var t;t=++r,t=0+Or($r()*(t-0+1)),e[r]=e[t],e[t]=n
-}),e}function C(n,r,t){var e;r=Q(r,t,3),t=-1;var u=n?n.length:0;if(typeof u=="number")for(;++te?Ir(0,u+e):e||0}else if(e)return e=H(r,t),r[e]===t?e:-1;
-return n(r,t,e)}function G(n,r,t){if(typeof r!="number"&&null!=r){var u=0,o=-1,i=n?n.length:0;for(r=Q(r,t,3);++o>>1,t(n[e])=y;m?(u&&(u=clearTimeout(u)),c=i,o=n.apply(f,e)):u||(u=setTimeout(v,y))}return m&&a?a=clearTimeout(a):a||r===p||(a=setTimeout(h,r)),t&&(m=true,o=n.apply(f,e)),!m||a||u||(e=f=null),o}}function Q(n,r,t){var e=typeof n;if(null==n||"function"==e)return a(n,r,t);if("object"!=e)return Z(n);var u=Pr(n);return function(r){for(var t=u.length,e=false;t--&&(e=r[u[t]]===n[u[t]]););return e}}function X(n){return n}function Y(n){q(j(n),function(r){var t=u[r]=n[r];u.prototype[r]=function(){var n=[this.__wrapped__];
-return Nr.apply(n,arguments),n=t.apply(u,n),this.__chain__?new o(n,true):n}})}function Z(n){return function(r){return r[n]}}var nr,rr=0,tr={},er=+new Date+"",ur=/($^)/,or=/['\n\r\t\u2028\u2029\\]/g,ir="[object Arguments]",fr="[object Array]",ar="[object Boolean]",lr="[object Date]",cr="[object Number]",pr="[object Object]",sr="[object RegExp]",gr="[object String]",hr={"boolean":false,"function":true,object:true,number:false,string:false,undefined:false},vr={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},yr=hr[typeof window]&&window||this,mr=hr[typeof exports]&&exports&&!exports.nodeType&&exports,_r=hr[typeof module]&&module&&!module.nodeType&&module,dr=_r&&_r.exports===mr&&mr,br=hr[typeof global]&&global;
-!br||br.global!==br&&br.window!==br||(yr=br);var wr=[],jr=Object.prototype,xr=yr._,Tr=jr.toString,Er=RegExp("^"+(Tr+"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),Ar=Math.ceil,Or=Math.floor,Sr=jr.hasOwnProperty,Nr=wr.push,Rr=jr.propertyIsEnumerable,kr=Er.test(kr=Object.create)&&kr,Br=Er.test(Br=Array.isArray)&&Br,Fr=yr.isFinite,qr=yr.isNaN,Dr=Er.test(Dr=Object.keys)&&Dr,Ir=Math.max,Mr=Math.min,$r=Math.random;o.prototype=u.prototype;var Wr={};!function(){var n={0:1,length:1};
-Wr.spliceObjects=(wr.splice.call(n,0,1),!n[0])}(1),u.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""},kr||(f=function(){function n(){}return function(r){if(A(r)){n.prototype=r;var t=new n;n.prototype=null}return t||yr.Object()}}()),d(arguments)||(d=function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Sr.call(n,"callee")&&!Rr.call(n,"callee")||false});var zr=Br||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Tr.call(n)==fr||false
-},Cr=function(n){var r,t=[];if(!n||!hr[typeof n])return t;for(r in n)Sr.call(n,r)&&t.push(r);return t},Pr=Dr?function(n){return A(n)?Dr(n):[]}:Cr,Ur={"&":"&","<":"<",">":">",'"':""","'":"'"},Vr=x(Ur),Gr=RegExp("("+Pr(Vr).join("|")+")","g"),Hr=RegExp("["+Pr(Ur).join("")+"]","g"),Jr=function(n,r){var t;if(!n||!hr[typeof n])return n;for(t in n)if(r(n[t],t,n)===tr)break;return n},Kr=function(n,r){var t;if(!n||!hr[typeof n])return n;for(t in n)if(Sr.call(n,t)&&r(n[t],t,n)===tr)break;
-return n};E(/x/)&&(E=function(n){return typeof n=="function"&&"[object Function]"==Tr.call(n)});var Lr=h(function(n,r,t){Sr.call(n,t)?n[t]++:n[t]=1}),Qr=h(function(n,r,t){(Sr.call(n,t)?n[t]:n[t]=[]).push(r)}),Xr=h(function(n,r,t){n[t]=r}),Yr=I,Zr=Er.test(Zr=Date.now)&&Zr||function(){return(new Date).getTime()};u.after=function(n,r){if(!E(r))throw new TypeError;return function(){return 1>--n?r.apply(this,arguments):void 0}},u.bind=K,u.bindAll=function(n){for(var r=1i(a,e)){for(r=t;--r;)if(0>i(n[r],e))continue n;a.push(e)}return a},u.invert=x,u.invoke=function(n,r){var t=e(arguments,2),u=-1,o=typeof r=="function",i=n?n.length:0,f=Array(typeof i=="number"?i:0);return q(n,function(n){f[++u]=(o?r:n[r]).apply(n,t)}),f},u.keys=Pr,u.map=I,u.max=M,u.memoize=function(n,r){var t={};return function(){var e=r?r.apply(this,arguments):er+arguments[0];return Sr.call(t,e)?t[e]:t[e]=n.apply(this,arguments)
-}},u.min=function(n,r,t){var e=1/0,u=e;typeof r!="function"&&t&&t[r]===n&&(r=null);var o=-1,i=n?n.length:0;if(null==r&&typeof i=="number")for(;++or?0:r);++nt?Ir(0,e+t):Mr(t,e-1))+1);e--;)if(n[e]===r)return e;
-return-1},u.mixin=Y,u.noConflict=function(){return yr._=xr,this},u.random=function(n,r){return null==n&&null==r&&(r=1),n=+n||0,null==r?(r=n,n=0):r=+r||0,n+Or($r()*(r-n+1))},u.reduce=$,u.reduceRight=W,u.result=function(n,r){if(n){var t=n[r];return E(t)?n[r]():t}},u.size=function(n){var r=n?n.length:0;return typeof r=="number"?r:Pr(n).length},u.some=C,u.sortedIndex=H,u.template=function(n,r,e){var o=u,i=o.templateSettings;n=(n||"")+"",e=w({},e,i);var f=0,a="__p+='",i=e.variable;n.replace(RegExp((e.escape||ur).source+"|"+(e.interpolate||ur).source+"|"+(e.evaluate||ur).source+"|$","g"),function(r,e,u,o,i){return a+=n.slice(f,i).replace(or,t),e&&(a+="'+_.escape("+e+")+'"),o&&(a+="';"+o+";\n__p+='"),u&&(a+="'+((__t=("+u+"))==null?'':__t)+'"),f=i+r.length,r
-}),a+="';",i||(i="obj",a="with("+i+"||{}){"+a+"}"),a="function("+i+"){var __t,__p='',__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}"+a+"return __p}";try{var l=Function("_","return "+a)(o)}catch(c){throw c.source=a,c}return r?l(r):(l.source=a,l)},u.unescape=function(n){return null==n?"":(n+"").replace(Gr,_)},u.uniqueId=function(n){var r=++rr+"";return n?n+r:r},u.all=k,u.any=C,u.detect=F,u.findWhere=function(n,r){return P(n,r,true)},u.foldl=$,u.foldr=W,u.include=R,u.inject=$,u.first=U,u.last=function(n,r,t){var u=0,o=n?n.length:0;
-if(typeof r!="number"&&null!=r){var i=o;for(r=Q(r,t,3);i--&&r(n[i],i,n);)u++}else if(u=r,null==u||t)return n?n[o-1]:nr;return e(n,Ir(0,o-u))},u.sample=function(n,r,t){return n&&typeof n.length!="number"&&(n=N(n)),null==r||t?n?n[0+Or($r()*(n.length-1-0+1))]:nr:(n=z(n),n.length=Mr(Ir(0,r),n.length),n)},u.take=U,u.head=U,Y(u),u.VERSION="2.4.0",u.prototype.chain=function(){return this.__chain__=true,this},u.prototype.value=function(){return this.__wrapped__},q("pop push reverse shift sort splice unshift".split(" "),function(n){var r=wr[n];
-u.prototype[n]=function(){var n=this.__wrapped__;return r.apply(n,arguments),Wr.spliceObjects||0!==n.length||delete n[0],this}}),q(["concat","join","slice"],function(n){var r=wr[n];u.prototype[n]=function(){var n=r.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new o(n),n.__chain__=true),n}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(yr._=u, define(function(){return u})):mr&&_r?dr?(_r.exports=u)._=u:mr._=u:yr._=u}).call(this);
\ No newline at end of file
+;(function(){function n(n,r,t){t=(t||0)-1;for(var e=n?n.length:0;++tf||typeof i=="undefined")return 1;if(it?0:t);++ee(r,i)&&o.push(i)}return o}function p(n,r,t,e){e=(e||0)-1;for(var u=n?n.length:0,o=[];++eu(f,l))&&(t&&f.push(l),i.push(a))}return i}function h(n){return function(r,t,e){var u={};t=X(t,e,3),e=-1;var o=r?r.length:0;if(typeof o=="number")for(;++eu&&(u=t);
+else r=X(r,t,3),D(n,function(n,t,o){t=r(n,t,o),t>e&&(e=t,u=n)});return u}function W(n,r,t,e){if(!n)return t;var u=3>arguments.length;r=X(r,e,4);var o=-1,i=n.length;if(typeof i=="number")for(u&&(t=n[++o]);++oarguments.length;return r=X(r,e,4),I(n,function(n,e,o){t=u?(u=false,n):r(t,n,e,o)}),t}function C(n){var r=-1,t=n?n.length:0,e=Array(typeof t=="number"?t:0);return D(n,function(n){var t;t=++r,t=0+Sr(Wr()*(t-0+1)),e[r]=e[t],e[t]=n
+}),e}function P(n,r,t){var e;r=X(r,t,3),t=-1;var u=n?n.length:0;if(typeof u=="number")for(;++te?Mr(0,u+e):e||0}else if(e)return e=J(r,t),r[e]===t?e:-1;
+return n(r,t,e)}function H(n,r,t){if(typeof r!="number"&&null!=r){var u=0,o=-1,i=n?n.length:0;for(r=X(r,t,3);++o>>1,t(n[e])=y;m?(u&&(u=clearTimeout(u)),c=i,o=n.apply(f,e)):u||(u=setTimeout(v,y))}return m&&a?a=clearTimeout(a):a||r===p||(a=setTimeout(h,r)),t&&(m=true,o=n.apply(f,e)),!m||a||u||(e=f=null),o}}function X(n,r,t){var e=typeof n;if(null==n||"function"==e)return a(n,r,t);if("object"!=e)return nr(n);var u=Ur(n);return function(r){for(var t=u.length,e=false;t--&&(e=r[u[t]]===n[u[t]]););return e}}function Y(n){return n}function Z(n){D(x(n),function(r){var t=u[r]=n[r];u.prototype[r]=function(){var n=[this.__wrapped__];
+return Rr.apply(n,arguments),n=t.apply(u,n),this.__chain__?new o(n,true):n}})}function nr(n){return function(r){return r[n]}}var rr,tr=0,er={},ur=+new Date+"",or=/($^)/,ir=/['\n\r\t\u2028\u2029\\]/g,fr="[object Arguments]",ar="[object Array]",lr="[object Boolean]",cr="[object Date]",pr="[object Number]",sr="[object Object]",gr="[object RegExp]",hr="[object String]",vr={"boolean":false,"function":true,object:true,number:false,string:false,undefined:false},yr={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},mr=vr[typeof window]&&window||this,_r=vr[typeof exports]&&exports&&!exports.nodeType&&exports,dr=vr[typeof module]&&module&&!module.nodeType&&module,br=dr&&dr.exports===_r&&_r,wr=vr[typeof global]&&global;
+!wr||wr.global!==wr&&wr.window!==wr||(mr=wr);var jr=[],xr=Object.prototype,Tr=mr._,Er=xr.toString,Ar=RegExp("^"+(Er+"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),Or=Math.ceil,Sr=Math.floor,Nr=xr.hasOwnProperty,Rr=jr.push,kr=xr.propertyIsEnumerable,Br=_(Br=Object.create)&&Br,Fr=_(Fr=Array.isArray)&&Fr,qr=mr.isFinite,Dr=mr.isNaN,Ir=_(Ir=Object.keys)&&Ir,Mr=Math.max,$r=Math.min,Wr=Math.random;o.prototype=u.prototype;var zr={};!function(){var n={0:1,length:1};zr.spliceObjects=(jr.splice.call(n,0,1),!n[0])
+}(1),u.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""},Br||(f=function(){function n(){}return function(r){if(O(r)){n.prototype=r;var t=new n;n.prototype=null}return t||mr.Object()}}()),b(arguments)||(b=function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Nr.call(n,"callee")&&!kr.call(n,"callee")||false});var Cr=Fr||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Er.call(n)==ar||false},Pr=function(n){var r,t=[];
+if(!n||!vr[typeof n])return t;for(r in n)Nr.call(n,r)&&t.push(r);return t},Ur=Ir?function(n){return O(n)?Ir(n):[]}:Pr,Vr={"&":"&","<":"<",">":">",'"':""","'":"'"},Gr=T(Vr),Hr=RegExp("("+Ur(Gr).join("|")+")","g"),Jr=RegExp("["+Ur(Vr).join("")+"]","g"),Kr=function(n,r){var t;if(!n||!vr[typeof n])return n;for(t in n)if(r(n[t],t,n)===er)break;return n},Lr=function(n,r){var t;if(!n||!vr[typeof n])return n;for(t in n)if(Nr.call(n,t)&&r(n[t],t,n)===er)break;return n};A(/x/)&&(A=function(n){return typeof n=="function"&&"[object Function]"==Er.call(n)
+});var Qr=h(function(n,r,t){Nr.call(n,t)?n[t]++:n[t]=1}),Xr=h(function(n,r,t){(Nr.call(n,t)?n[t]:n[t]=[]).push(r)}),Yr=h(function(n,r,t){n[t]=r}),Zr=M,nt=_(nt=Date.now)&&nt||function(){return(new Date).getTime()};u.after=function(n,r){if(!A(r))throw new TypeError;return function(){return 1>--n?r.apply(this,arguments):void 0}},u.bind=L,u.bindAll=function(n){for(var r=1i(a,e)){for(r=t;--r;)if(0>i(n[r],e))continue n;a.push(e)}return a},u.invert=T,u.invoke=function(n,r){var t=e(arguments,2),u=-1,o=typeof r=="function",i=n?n.length:0,f=Array(typeof i=="number"?i:0);return D(n,function(n){f[++u]=(o?r:n[r]).apply(n,t)}),f},u.keys=Ur,u.map=M,u.max=$,u.memoize=function(n,r){var t={};return function(){var e=r?r.apply(this,arguments):ur+arguments[0];return Nr.call(t,e)?t[e]:t[e]=n.apply(this,arguments)
+}},u.min=function(n,r,t){var e=1/0,u=e;typeof r!="function"&&t&&t[r]===n&&(r=null);var o=-1,i=n?n.length:0;if(null==r&&typeof i=="number")for(;++or?0:r);++nt?Mr(0,e+t):$r(t,e-1))+1);e--;)if(n[e]===r)return e;
+return-1},u.mixin=Z,u.noConflict=function(){return mr._=Tr,this},u.random=function(n,r){return null==n&&null==r&&(r=1),n=+n||0,null==r?(r=n,n=0):r=+r||0,n+Sr(Wr()*(r-n+1))},u.reduce=W,u.reduceRight=z,u.result=function(n,r){if(n){var t=n[r];return A(t)?n[r]():t}},u.size=function(n){var r=n?n.length:0;return typeof r=="number"?r:Ur(n).length},u.some=P,u.sortedIndex=J,u.template=function(n,r,e){var o=u,i=o.templateSettings;n=(n||"")+"",e=j({},e,i);var f=0,a="__p+='",i=e.variable;n.replace(RegExp((e.escape||or).source+"|"+(e.interpolate||or).source+"|"+(e.evaluate||or).source+"|$","g"),function(r,e,u,o,i){return a+=n.slice(f,i).replace(ir,t),e&&(a+="'+_.escape("+e+")+'"),o&&(a+="';"+o+";\n__p+='"),u&&(a+="'+((__t=("+u+"))==null?'':__t)+'"),f=i+r.length,r
+}),a+="';",i||(i="obj",a="with("+i+"||{}){"+a+"}"),a="function("+i+"){var __t,__p='',__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}"+a+"return __p}";try{var l=Function("_","return "+a)(o)}catch(c){throw c.source=a,c}return r?l(r):(l.source=a,l)},u.unescape=function(n){return null==n?"":(n+"").replace(Hr,d)},u.uniqueId=function(n){var r=++tr+"";return n?n+r:r},u.all=B,u.any=P,u.detect=q,u.findWhere=function(n,r){return U(n,r,true)},u.foldl=W,u.foldr=z,u.include=k,u.inject=W,u.first=V,u.last=function(n,r,t){var u=0,o=n?n.length:0;
+if(typeof r!="number"&&null!=r){var i=o;for(r=X(r,t,3);i--&&r(n[i],i,n);)u++}else if(u=r,null==u||t)return n?n[o-1]:rr;return e(n,Mr(0,o-u))},u.sample=function(n,r,t){return n&&typeof n.length!="number"&&(n=R(n)),null==r||t?n?n[0+Sr(Wr()*(n.length-1-0+1))]:rr:(n=C(n),n.length=$r(Mr(0,r),n.length),n)},u.take=V,u.head=V,Z(u),u.VERSION="2.4.1",u.prototype.chain=function(){return this.__chain__=true,this},u.prototype.value=function(){return this.__wrapped__},D("pop push reverse shift sort splice unshift".split(" "),function(n){var r=jr[n];
+u.prototype[n]=function(){var n=this.__wrapped__;return r.apply(n,arguments),zr.spliceObjects||0!==n.length||delete n[0],this}}),D(["concat","join","slice"],function(n){var r=jr[n];u.prototype[n]=function(){var n=r.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new o(n),n.__chain__=true),n}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(mr._=u, define(function(){return u})):_r&&dr?br?(dr.exports=u)._=u:_r._=u:mr._=u}).call(this);
\ No newline at end of file
diff --git a/doc/README.md b/doc/README.md
index 65f5917308..794cd27e07 100644
--- a/doc/README.md
+++ b/doc/README.md
@@ -1,4 +1,4 @@
-# Lo-Dash v2.4.0
+# Lo-Dash v2.4.1
@@ -239,7 +239,7 @@
### `_.compact(array)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L4461 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4479 "View in source") [Ⓣ][1]
Creates an array with all falsey values removed. The values `false`, `null`, `0`, `""`, `undefined`, and `NaN` are all falsey.
@@ -263,7 +263,7 @@ _.compact([0, 1, false, 2, '', 3]);
### `_.difference(array, [values])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L4490 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4508 "View in source") [Ⓣ][1]
Creates an array excluding all values of the provided arrays using strict equality for comparisons, i.e. `===`.
@@ -288,7 +288,7 @@ _.difference([1, 2, 3, 4, 5], [5, 2, 10]);
### `_.findIndex(array, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L4535 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4553 "View in source") [Ⓣ][1]
This method is like `_.find` except that it returns the index of the first element that passes the callback check, instead of the element itself.
@@ -334,7 +334,7 @@ _.findIndex(characters, 'blocked');
### `_.findLastIndex(array, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L4589 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4607 "View in source") [Ⓣ][1]
This method is like `_.findIndex` except that it iterates over elements of a `collection` from right to left.
@@ -380,7 +380,7 @@ _.findLastIndex(characters, 'blocked');
### `_.first(array, [callback], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L4651 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4669 "View in source") [Ⓣ][1]
Gets the first element or first `n` elements of an array. If a callback is provided elements at the beginning of the array are returned as long as the callback returns truey. The callback is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -435,7 +435,7 @@ _.pluck(_.first(characters, { 'employer': 'slate' }), 'name');
### `_.flatten(array, [isShallow=false], [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L4711 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4729 "View in source") [Ⓣ][1]
Flattens a nested array *(the nesting can be to any depth)*. If `isShallow` is truey, the array will only be flattened a single level. If a callback is provided each element of the array is passed through the callback before flattening. The callback is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -478,7 +478,7 @@ _.flatten(characters, 'pets');
### `_.indexOf(array, value, [fromIndex=0])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L4748 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4766 "View in source") [Ⓣ][1]
Gets the index at which the first occurrence of `value` is found using strict equality for comparisons, i.e. `===`. If the array is already sorted providing `true` for `fromIndex` will run a faster binary search.
@@ -510,7 +510,7 @@ _.indexOf([1, 1, 2, 2, 3, 3], 2, true);
### `_.initial(array, [callback=1], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L4809 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4827 "View in source") [Ⓣ][1]
Gets all but the last element or last `n` elements of an array. If a callback is provided elements at the end of the array are excluded from the result as long as the callback returns truey. The callback is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -562,7 +562,7 @@ _.pluck(_.initial(characters, { 'employer': 'na' }), 'name');
### `_.intersection([array])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L4839 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4857 "View in source") [Ⓣ][1]
Creates an array of unique values present in all provided arrays using strict equality for comparisons, i.e. `===`.
@@ -586,7 +586,7 @@ _.intersection([1, 2, 3], [5, 2, 1, 4], [2, 1]);
### `_.last(array, [callback], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L4939 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4957 "View in source") [Ⓣ][1]
Gets the last element or last `n` elements of an array. If a callback is provided elements at the end of the array are returned as long as the callback returns truey. The callback is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -638,7 +638,7 @@ _.last(characters, { 'employer': 'na' });
### `_.lastIndexOf(array, value, [fromIndex=array.length-1])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L4985 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5003 "View in source") [Ⓣ][1]
Gets the index at which the last occurrence of `value` is found using strict equality for comparisons, i.e. `===`. If `fromIndex` is negative, it is used as the offset from the end of the collection.
@@ -671,7 +671,7 @@ _.lastIndexOf([1, 2, 3, 1, 2, 3], 2, 3);
### `_.pull(array, [value])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L5015 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5033 "View in source") [Ⓣ][1]
Removes all provided values from the given array using strict equality for comparisons, i.e. `===`.
@@ -698,7 +698,7 @@ console.log(array);
### `_.range([start=0], end, [step=1])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L5066 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5084 "View in source") [Ⓣ][1]
Creates an array of numbers *(positive and/or negative)* progressing from `start` up to but not including `end`. If `start` is less than `stop` a zero-length range is created unless a negative `step` is specified.
@@ -739,7 +739,7 @@ _.range(0);
### `_.remove(array, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L5119 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5137 "View in source") [Ⓣ][1]
Removes all elements from an array that the callback returns truey for and returns an array of removed elements. The callback is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -775,7 +775,7 @@ console.log(evens);
### `_.rest(array, [callback=1], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L5188 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5206 "View in source") [Ⓣ][1]
The opposite of `_.initial` this method gets all but the first element or first `n` elements of an array. If a callback function is provided elements at the beginning of the array are excluded from the result as long as the callback returns truey. The callback is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -830,7 +830,7 @@ _.rest(characters, { 'employer': 'slate' });
### `_.sortedIndex(array, value, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L5252 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5270 "View in source") [Ⓣ][1]
Uses a binary search to determine the smallest index at which a value should be inserted into a given sorted array in order to maintain the sort order of the array. If a callback is provided it will be executed for `value` and each element of `array` to compute their sort ranking. The callback is bound to `thisArg` and invoked with one argument; *(value)*.
@@ -879,7 +879,7 @@ _.sortedIndex(['twenty', 'thirty', 'fifty'], 'fourty', function(word) {
### `_.union([array])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L5283 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5301 "View in source") [Ⓣ][1]
Creates an array of unique values, in order, of the provided arrays using strict equality for comparisons, i.e. `===`.
@@ -903,7 +903,7 @@ _.union([1, 2, 3], [5, 2, 1, 4], [2, 1]);
### `_.uniq(array, [isSorted=false], [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L5331 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5349 "View in source") [Ⓣ][1]
Creates a duplicate-value-free version of an array using strict equality for comparisons, i.e. `===`. If the array is sorted, providing `true` for `isSorted` will use a faster algorithm. If a callback is provided each element of `array` is passed through the callback before uniqueness is computed. The callback is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -950,7 +950,7 @@ _.uniq([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
### `_.without(array, [value])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L5359 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5377 "View in source") [Ⓣ][1]
Creates an array excluding all provided values using strict equality for comparisons, i.e. `===`.
@@ -975,9 +975,9 @@ _.without([1, 2, 1, 0, 3, 1, 4], 0, 1);
### `_.xor([array])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L5380 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5398 "View in source") [Ⓣ][1]
-Creates an array that is the smymetric difference of the provided arrays. See http://en.wikipedia.org/wiki/Symmetric_difference.
+Creates an array that is the symmetric difference of the provided arrays. See http://en.wikipedia.org/wiki/Symmetric_difference.
#### Arguments
1. `[array]` *(...Array)*: The arrays to inspect.
@@ -1002,7 +1002,7 @@ _.xor([1, 2, 5], [2, 3, 5], [3, 4, 5]);
### `_.zip([array])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L5411 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5429 "View in source") [Ⓣ][1]
Creates an array of grouped elements, the first of which contains the first elements of the given arrays, the second of which contains the second elements of the given arrays, and so on.
@@ -1029,7 +1029,7 @@ _.zip(['fred', 'barney'], [30, 40], [true, false]);
### `_.zipObject(keys, [values=[]])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L5441 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5459 "View in source") [Ⓣ][1]
Creates an object composed from arrays of `keys` and `values`. Provide either a single two dimensional array, i.e. `[[key1, value1], [key2, value2]]` or two arrays, one of `keys` and one of corresponding `values`.
@@ -1064,7 +1064,7 @@ _.zipObject(['fred', 'barney'], [30, 40]);
### `_(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L647 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L647 "View in source") [Ⓣ][1]
Creates a `lodash` object which wraps the given value to enable intuitive method chaining.
@@ -1119,7 +1119,7 @@ _.isArray(squares.value());
### `_.chain(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L6770 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6788 "View in source") [Ⓣ][1]
Creates a `lodash` object that wraps the given value with explicit method chaining enabled.
@@ -1153,7 +1153,7 @@ var youngest = _.chain(characters)
### `_.tap(value, interceptor)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L6796 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6814 "View in source") [Ⓣ][1]
Invokes `interceptor` with the `value` as the first argument and then returns `value`. The purpose of this method is to "tap into" a method chain in order to perform operations on intermediate results within the chain.
@@ -1181,7 +1181,7 @@ _([1, 2, 3, 4])
### `_.prototype.chain()`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L6826 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6844 "View in source") [Ⓣ][1]
Enables explicit method chaining on the wrapper object.
@@ -1215,7 +1215,7 @@ _(characters).chain()
### `_.prototype.toString()`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L6843 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6861 "View in source") [Ⓣ][1]
Produces the `toString` result of the wrapped value.
@@ -1236,7 +1236,7 @@ _([1, 2, 3]).toString();
### `_.prototype.valueOf()`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L6860 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6878 "View in source") [Ⓣ][1]
Extracts the wrapped value.
@@ -1267,7 +1267,7 @@ _([1, 2, 3]).valueOf();
### `_.at(collection, [index])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L3278 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3296 "View in source") [Ⓣ][1]
Creates an array of elements from the specified indexes, or keys, of the `collection`. Indexes may be specified as individual arguments or as arrays of indexes.
@@ -1295,7 +1295,7 @@ _.at(['fred', 'barney', 'pebbles'], 0, 2);
### `_.contains(collection, target, [fromIndex=0])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L3321 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3339 "View in source") [Ⓣ][1]
Checks if a given value is present in a collection using strict equality for comparisons, i.e. `===`. If `fromIndex` is negative, it is used as the offset from the end of the collection.
@@ -1333,7 +1333,7 @@ _.contains('pebbles', 'eb');
### `_.countBy(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L3376 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3394 "View in source") [Ⓣ][1]
Creates an object composed of keys generated from the results of running each element of `collection` through the callback. The corresponding value of each key is the number of times the key was returned by the callback. The callback is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1369,7 +1369,7 @@ _.countBy(['one', 'two', 'three'], 'length');
### `_.every(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L3421 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3439 "View in source") [Ⓣ][1]
Checks if the given callback returns truey value for **all** elements of a collection. The callback is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1415,7 +1415,7 @@ _.every(characters, { 'age': 36 });
### `_.filter(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L3482 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3500 "View in source") [Ⓣ][1]
Iterates over elements of a collection, returning an array of all elements the callback returns truey for. The callback is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1461,7 +1461,7 @@ _.filter(characters, { 'age': 36 });
### `_.find(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L3549 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3567 "View in source") [Ⓣ][1]
Iterates over elements of a collection, returning the first element that the callback returns truey for. The callback is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1510,7 +1510,7 @@ _.find(characters, 'blocked');
### `_.findLast(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L3594 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3612 "View in source") [Ⓣ][1]
This method is like `_.find` except that it iterates over elements of a `collection` from right to left.
@@ -1538,7 +1538,7 @@ _.findLast([1, 2, 3, 4], function(num) {
### `_.forEach(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L3632 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3650 "View in source") [Ⓣ][1]
Iterates over elements of a collection, executing the callback for each element. The callback is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*. Callbacks may exit iteration early by explicitly returning `false`.
@@ -1572,7 +1572,7 @@ _.forEach({ 'one': 1, 'two': 2, 'three': 3 }, function(num) { console.log(num);
### `_.forEachRight(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L3665 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3683 "View in source") [Ⓣ][1]
This method is like `_.forEach` except that it iterates over elements of a `collection` from right to left.
@@ -1601,7 +1601,7 @@ _([1, 2, 3]).forEachRight(function(num) { console.log(num); }).join(',');
### `_.groupBy(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L3726 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3744 "View in source") [Ⓣ][1]
Creates an object composed of keys generated from the results of running each element of a collection through the callback. The corresponding value of each key is an array of the elements responsible for generating the key. The callback is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1638,7 +1638,7 @@ _.groupBy(['one', 'two', 'three'], 'length');
### `_.indexBy(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L3769 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3787 "View in source") [Ⓣ][1]
Creates an object composed of keys generated from the results of running each element of the collection through the given callback. The corresponding value of each key is the last element responsible for generating the key. The callback is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1679,7 +1679,7 @@ _.indexBy(characters, function(key) { this.fromCharCode(key.code); }, String);
### `_.invoke(collection, methodName, [arg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L3795 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3813 "View in source") [Ⓣ][1]
Invokes the method named by `methodName` on each element in the `collection` returning an array of the results of each invoked method. Additional arguments will be provided to each invoked method. If `methodName` is a function it will be invoked for, and `this` bound to, each element in the `collection`.
@@ -1708,7 +1708,7 @@ _.invoke([123, 456], String.prototype.split, '');
### `_.map(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L3847 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3865 "View in source") [Ⓣ][1]
Creates an array of values by running each element in the collection through the callback. The callback is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1753,7 +1753,7 @@ _.map(characters, 'name');
### `_.max(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L3905 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3923 "View in source") [Ⓣ][1]
Retrieves the maximum value of a collection. If the collection is empty or falsey `-Infinity` is returned. If a callback is provided it will be executed for each value in the collection to generate the criterion by which the value is ranked. The callback is bound to `thisArg` and invoked with three arguments; *(value, index, collection)*.
@@ -1795,7 +1795,7 @@ _.max(characters, 'age');
### `_.min(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L3980 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3998 "View in source") [Ⓣ][1]
Retrieves the minimum value of a collection. If the collection is empty or falsey `Infinity` is returned. If a callback is provided it will be executed for each value in the collection to generate the criterion by which the value is ranked. The callback is bound to `thisArg` and invoked with three arguments; *(value, index, collection)*.
@@ -1837,7 +1837,7 @@ _.min(characters, 'age');
### `_.pluck(collection, property)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L4035 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4053 "View in source") [Ⓣ][1]
Retrieves the value of a specified property from all elements in the collection.
@@ -1867,7 +1867,7 @@ _.pluck(characters, 'name');
### `_.reduce(collection, [callback=identity], [accumulator], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L4067 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4085 "View in source") [Ⓣ][1]
Reduces a collection to a value which is the accumulated result of running each element in the collection through the callback, where each successive callback execution consumes the return value of the previous execution. If `accumulator` is not provided the first element of the collection will be used as the initial `accumulator` value. The callback is bound to `thisArg` and invoked with four arguments; *(accumulator, value, index|key, collection)*.
@@ -1905,7 +1905,7 @@ var mapped = _.reduce({ 'a': 1, 'b': 2, 'c': 3 }, function(result, num, key) {
### `_.reduceRight(collection, [callback=identity], [accumulator], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L4110 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4128 "View in source") [Ⓣ][1]
This method is like `_.reduce` except that it iterates over elements of a `collection` from right to left.
@@ -1936,7 +1936,7 @@ var flat = _.reduceRight(list, function(a, b) { return a.concat(b); }, []);
### `_.reject(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L4159 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4177 "View in source") [Ⓣ][1]
The opposite of `_.filter` this method returns the elements of a collection that the callback does **not** return truey for.
@@ -1979,7 +1979,7 @@ _.reject(characters, { 'age': 36 });
### `_.sample(collection, [n])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L4185 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4203 "View in source") [Ⓣ][1]
Retrieves a random element or `n` random elements from a collection.
@@ -2007,7 +2007,7 @@ _.sample([1, 2, 3, 4], 2);
### `_.shuffle(collection)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L4213 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4231 "View in source") [Ⓣ][1]
Creates an array of shuffled values, using a version of the Fisher-Yates shuffle. See http://en.wikipedia.org/wiki/Fisher-Yates_shuffle.
@@ -2031,7 +2031,7 @@ _.shuffle([1, 2, 3, 4, 5, 6]);
### `_.size(collection)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L4246 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4264 "View in source") [Ⓣ][1]
Gets the size of the `collection` by returning `collection.length` for arrays and array-like objects or the number of own enumerable properties for objects.
@@ -2061,7 +2061,7 @@ _.size('pebbles');
### `_.some(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L4293 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4311 "View in source") [Ⓣ][1]
Checks if the callback returns a truey value for **any** element of a collection. The function returns as soon as it finds a passing value and does not iterate over the entire collection. The callback is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -2107,7 +2107,7 @@ _.some(characters, { 'age': 1 });
### `_.sortBy(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L4363 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4381 "View in source") [Ⓣ][1]
Creates an array of elements, sorted in ascending order by the results of running each element in a collection through the callback. This method performs a stable sort, that is, it will preserve the original sort order of equal elements. The callback is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -2157,7 +2157,7 @@ _.map(_.sortBy(characters, ['name', 'age']), _.values);
### `_.toArray(collection)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L4409 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4427 "View in source") [Ⓣ][1]
Converts the `collection` to an array.
@@ -2181,7 +2181,7 @@ Converts the `collection` to an array.
### `_.where(collection, props)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L4443 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4461 "View in source") [Ⓣ][1]
Performs a deep comparison of each element in a `collection` to the given `properties` object, returning an array of all elements that have equivalent property values.
@@ -2221,7 +2221,7 @@ _.where(characters, { 'pets': ['dino'] });
### `_.after(n, func)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L5486 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5504 "View in source") [Ⓣ][1]
Creates a function that executes `func`, with the `this` binding and arguments of the created function, only after being called `n` times.
@@ -2254,7 +2254,7 @@ _.forEach(saves, function(type) {
### `_.bind(func, [thisArg], [arg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L5519 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5537 "View in source") [Ⓣ][1]
Creates a function that, when called, invokes `func` with the `this` binding of `thisArg` and prepends any additional `bind` arguments to those provided to the bound function.
@@ -2285,7 +2285,7 @@ func();
### `_.bindAll(object, [methodName])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L5549 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5567 "View in source") [Ⓣ][1]
Binds methods of an object to the object itself, overwriting the existing method. Method names may be specified as individual arguments or as arrays of method names. If no method names are provided all the function properties of `object` will be bound.
@@ -2316,7 +2316,7 @@ jQuery('#docs').on('click', view.onClick);
### `_.bindKey(object, key, [arg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L5595 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5613 "View in source") [Ⓣ][1]
Creates a function that, when called, invokes the method at `object[key]` and prepends any additional `bindKey` arguments to those provided to the bound function. This method differs from `_.bind` by allowing bound functions to reference methods that will be redefined or don't yet exist. See http://michaux.ca/articles/lazy-function-definition-pattern.
@@ -2357,7 +2357,7 @@ func();
### `_.compose([func])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L5631 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5649 "View in source") [Ⓣ][1]
Creates a function that is the composition of the provided functions, where each function consumes the return value of the function that follows. For example, composing the functions `f()`, `g()`, and `h()` produces `f(g(h()))`. Each function is executed with the `this` binding of the composed function.
@@ -2395,7 +2395,7 @@ welcome('pebbles');
### `_.curry(func, [arity=func.length])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L5679 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5697 "View in source") [Ⓣ][1]
Creates a function which accepts one or more arguments of `func` that when invoked either executes `func` returning its result, if all `func` arguments have been provided, or returns a function that accepts one or more of the remaining `func` arguments, and so on. The arity of `func` can be specified if `func.length` is not sufficient.
@@ -2430,7 +2430,7 @@ curried(1, 2, 3);
### `_.debounce(func, wait, [options], [options.maxWait])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L5723 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5741 "View in source") [Ⓣ][1]
Creates a function that will delay the execution of `func` until after `wait` milliseconds have elapsed since the last time it was invoked. Provide an options object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the debounced function will return the result of the last `func` call.
@@ -2474,7 +2474,7 @@ source.addEventListener('message', _.debounce(batchLog, 250, {
### `_.defer(func, [arg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L5839 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5857 "View in source") [Ⓣ][1]
Defers executing the `func` function until the current call stack has cleared. Additional arguments will be provided to `func` when it is invoked.
@@ -2499,7 +2499,7 @@ _.defer(function(text) { console.log(text); }, 'deferred');
### `_.delay(func, wait, [arg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L5863 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5881 "View in source") [Ⓣ][1]
Executes the `func` function after `wait` milliseconds. Additional arguments will be provided to `func` when it is invoked.
@@ -2525,7 +2525,7 @@ _.delay(function(text) { console.log(text); }, 1000, 'later');
### `_.memoize(func, [resolver])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L5908 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5926 "View in source") [Ⓣ][1]
Creates a function that memoizes the result of `func`. If `resolver` is provided it will be used to determine the cache key for storing the result based on the arguments provided to the memoized function. By default, the first argument provided to the memoized function is used as the cache key. The `func` is executed with the `this` binding of the memoized function. The result cache is exposed as the `cache` property on the memoized function.
@@ -2568,7 +2568,7 @@ get('pebbles');
### `_.once(func)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L5941 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5959 "View in source") [Ⓣ][1]
Creates a function that is restricted to execute `func` once. Repeat calls to the function will return the value of the first call. The `func` is executed with the `this` binding of the created function.
@@ -2594,7 +2594,7 @@ initialize();
### `_.partial(func, [arg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L5979 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5997 "View in source") [Ⓣ][1]
Creates a function that, when called, invokes `func` with any additional `partial` arguments prepended to those provided to the new function. This method is similar to `_.bind` except it does **not** alter the `this` binding.
@@ -2621,7 +2621,7 @@ hi('fred');
### `_.partialRight(func, [arg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L6010 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6028 "View in source") [Ⓣ][1]
This method is like `_.partial` except that `partial` arguments are appended to those provided to the new function.
@@ -2658,7 +2658,7 @@ options.imports
### `_.throttle(func, wait, [options])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L6045 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6063 "View in source") [Ⓣ][1]
Creates a function that, when executed, will only call the `func` function at most once per every `wait` milliseconds. Provide an options object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the throttled function will return the result of the last `func` call.
@@ -2694,7 +2694,7 @@ jQuery('.interactive').on('click', _.throttle(renewToken, 300000, {
### `_.wrap(value, wrapper)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L6086 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6104 "View in source") [Ⓣ][1]
Creates a function that provides `value` to the wrapper function as its first argument. Additional arguments provided to the function are appended to those provided to the wrapper function. The wrapper is executed with the `this` binding of the created function.
@@ -2730,7 +2730,7 @@ p('Fred, Wilma, & Pebbles');
### `_.assign(object, [source], [callback], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2066 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2084 "View in source") [Ⓣ][1]
Assigns own enumerable properties of source object(s) to the destination object. Subsequent sources will overwrite property assignments of previous sources. If a callback is provided it will be executed to produce the assigned values. The callback is bound to `thisArg` and invoked with two arguments; *(objectValue, sourceValue)*.
@@ -2768,7 +2768,7 @@ defaults(object, { 'name': 'fred', 'employer': 'slate' });
### `_.clone(value, [isDeep=false], [callback], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2119 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2137 "View in source") [Ⓣ][1]
Creates a clone of `value`. If `isDeep` is `true` nested objects will also be cloned, otherwise they will be assigned by reference. If a callback is provided it will be executed to produce the cloned values. If the callback returns `undefined` cloning will be handled by the method instead. The callback is bound to `thisArg` and invoked with one argument; *(value)*.
@@ -2815,7 +2815,7 @@ clone.childNodes.length;
### `_.cloneDeep(value, [callback], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2171 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2189 "View in source") [Ⓣ][1]
Creates a deep clone of `value`. If a callback is provided it will be executed to produce the cloned values. If the callback returns `undefined` cloning will be handled by the method instead. The callback is bound to `thisArg` and invoked with one argument; *(value)*.
@@ -2861,7 +2861,7 @@ clone.node == view.node;
### `_.create(prototype, [properties])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2206 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2224 "View in source") [Ⓣ][1]
Creates an object that inherits from the given `prototype` object. If a `properties` object is provided its own enumerable properties are assigned to the created object.
@@ -2901,7 +2901,7 @@ circle instanceof Shape;
### `_.defaults(object, [source])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2231 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2249 "View in source") [Ⓣ][1]
Assigns own enumerable properties of source object(s) to the destination object for all destination properties that resolve to `undefined`. Once a property is set, additional defaults of the same property will be ignored.
@@ -2927,7 +2927,7 @@ _.defaults(object, { 'name': 'fred', 'employer': 'slate' });
### `_.findKey(object, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2274 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2292 "View in source") [Ⓣ][1]
This method is like `_.findIndex` except that it returns the key of the first element that passes the callback check, instead of the element itself.
@@ -2973,7 +2973,7 @@ _.findKey(characters, 'blocked');
### `_.findLastKey(object, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2327 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2345 "View in source") [Ⓣ][1]
This method is like `_.findKey` except that it iterates over elements of a `collection` in the opposite order.
@@ -3019,7 +3019,7 @@ _.findLastKey(characters, 'blocked');
### `_.forIn(object, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2370 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2388 "View in source") [Ⓣ][1]
Iterates over own and inherited enumerable properties of an object, executing the callback for each property. The callback is bound to `thisArg` and invoked with three arguments; *(value, key, object)*. Callbacks may exit iteration early by explicitly returning `false`.
@@ -3057,7 +3057,7 @@ _.forIn(new Shape, function(value, key) {
### `_.forInRight(object, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2402 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2420 "View in source") [Ⓣ][1]
This method is like `_.forIn` except that it iterates over elements of a `collection` in the opposite order.
@@ -3095,7 +3095,7 @@ _.forInRight(new Shape, function(value, key) {
### `_.forOwn(object, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2440 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2458 "View in source") [Ⓣ][1]
Iterates over own enumerable properties of an object, executing the callback for each property. The callback is bound to `thisArg` and invoked with three arguments; *(value, key, object)*. Callbacks may exit iteration early by explicitly returning `false`.
@@ -3123,7 +3123,7 @@ _.forOwn({ '0': 'zero', '1': 'one', 'length': 2 }, function(num, key) {
### `_.forOwnRight(object, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2460 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2478 "View in source") [Ⓣ][1]
This method is like `_.forOwn` except that it iterates over elements of a `collection` in the opposite order.
@@ -3151,7 +3151,7 @@ _.forOwnRight({ '0': 'zero', '1': 'one', 'length': 2 }, function(num, key) {
### `_.functions(object)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2489 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2507 "View in source") [Ⓣ][1]
Creates a sorted array of property names of all enumerable properties, own and inherited, of `object` that have function values.
@@ -3178,7 +3178,7 @@ _.functions(_);
### `_.has(object, key)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2514 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2532 "View in source") [Ⓣ][1]
Checks if the specified property name exists as a direct property of `object`, instead of an inherited property.
@@ -3203,7 +3203,7 @@ _.has({ 'a': 1, 'b': 2, 'c': 3 }, 'b');
### `_.invert(object)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2531 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2549 "View in source") [Ⓣ][1]
Creates an object composed of the inverted keys and values of the given object.
@@ -3227,7 +3227,7 @@ _.invert({ 'first': 'fred', 'second': 'barney' });
### `_.isArguments(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L1891 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L1909 "View in source") [Ⓣ][1]
Checks if `value` is an `arguments` object.
@@ -3254,7 +3254,7 @@ _.isArguments([1, 2, 3]);
### `_.isArray(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L1920 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L1938 "View in source") [Ⓣ][1]
Checks if `value` is an array.
@@ -3281,7 +3281,7 @@ _.isArray([1, 2, 3]);
### `_.isBoolean(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2557 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2575 "View in source") [Ⓣ][1]
Checks if `value` is a boolean value.
@@ -3305,7 +3305,7 @@ _.isBoolean(null);
### `_.isDate(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2575 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2593 "View in source") [Ⓣ][1]
Checks if `value` is a date.
@@ -3329,7 +3329,7 @@ _.isDate(new Date);
### `_.isElement(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2592 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2610 "View in source") [Ⓣ][1]
Checks if `value` is a DOM element.
@@ -3353,7 +3353,7 @@ _.isElement(document.body);
### `_.isEmpty(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2617 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2635 "View in source") [Ⓣ][1]
Checks if `value` is empty. Arrays, strings, or `arguments` objects with a length of `0` and objects with no own enumerable properties are considered "empty".
@@ -3383,7 +3383,7 @@ _.isEmpty('');
### `_.isEqual(a, b, [callback], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2674 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2692 "View in source") [Ⓣ][1]
Performs a deep comparison between two values to determine if they are equivalent to each other. If a callback is provided it will be executed to compare values. If the callback returns `undefined` comparisons will be handled by the method instead. The callback is bound to `thisArg` and invoked with two arguments; *(a, b)*.
@@ -3428,7 +3428,7 @@ _.isEqual(words, otherWords, function(a, b) {
### `_.isFinite(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2706 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2724 "View in source") [Ⓣ][1]
Checks if `value` is, or can be coerced to, a finite number.
@@ -3466,7 +3466,7 @@ _.isFinite(Infinity);
### `_.isFunction(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2723 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2741 "View in source") [Ⓣ][1]
Checks if `value` is a function.
@@ -3490,7 +3490,7 @@ _.isFunction(_);
### `_.isNaN(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2786 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2804 "View in source") [Ⓣ][1]
Checks if `value` is `NaN`.
@@ -3525,7 +3525,7 @@ _.isNaN(undefined);
### `_.isNull(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2808 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2826 "View in source") [Ⓣ][1]
Checks if `value` is `null`.
@@ -3552,7 +3552,7 @@ _.isNull(undefined);
### `_.isNumber(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2827 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2845 "View in source") [Ⓣ][1]
Checks if `value` is a number.
@@ -3578,7 +3578,7 @@ _.isNumber(8.4 * 5);
### `_.isObject(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2753 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2771 "View in source") [Ⓣ][1]
Checks if `value` is the language type of Object. *(e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)*
@@ -3608,7 +3608,7 @@ _.isObject(1);
### `_.isPlainObject(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2856 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2874 "View in source") [Ⓣ][1]
Checks if `value` is an object created by the `Object` constructor.
@@ -3643,7 +3643,7 @@ _.isPlainObject({ 'x': 0, 'y': 0 });
### `_.isRegExp(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2881 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2899 "View in source") [Ⓣ][1]
Checks if `value` is a regular expression.
@@ -3667,7 +3667,7 @@ _.isRegExp(/fred/);
### `_.isString(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2898 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2916 "View in source") [Ⓣ][1]
Checks if `value` is a string.
@@ -3691,7 +3691,7 @@ _.isString('fred');
### `_.isUndefined(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2916 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2934 "View in source") [Ⓣ][1]
Checks if `value` is `undefined`.
@@ -3715,7 +3715,7 @@ _.isUndefined(void 0);
### `_.keys(object)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L1954 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L1972 "View in source") [Ⓣ][1]
Creates an array composed of the own enumerable property names of an object.
@@ -3739,7 +3739,7 @@ _.keys({ 'one': 1, 'two': 2, 'three': 3 });
### `_.mapValues(object, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L2956 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2974 "View in source") [Ⓣ][1]
Creates an object with the same keys as `object` and values generated by running each own enumerable property of `object` through the callback. The callback is bound to `thisArg` and invoked with three arguments; *(value, key, object)*.
@@ -3778,7 +3778,7 @@ _.mapValues(characters, 'age');
### `_.merge(object, [source], [callback], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L3017 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3035 "View in source") [Ⓣ][1]
Recursively merges own enumerable properties of the source object(s), that don't resolve to `undefined` into the destination object. Subsequent sources will overwrite property assignments of previous sources. If a callback is provided it will be executed to produce the merged values of the destination and source properties. If the callback returns `undefined` merging will be handled by the method instead. The callback is bound to `thisArg` and invoked with two arguments; *(objectValue, sourceValue)*.
@@ -3834,7 +3834,7 @@ _.merge(food, otherFood, function(a, b) {
### `_.omit(object, [callback], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L3073 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3091 "View in source") [Ⓣ][1]
Creates a shallow clone of `object` excluding the specified properties. Property names may be specified as individual arguments or as arrays of property names. If a callback is provided it will be executed for each property of `object` omitting the properties the callback returns truey for. The callback is bound to `thisArg` and invoked with three arguments; *(value, key, object)*.
@@ -3865,7 +3865,7 @@ _.omit({ 'name': 'fred', 'age': 40 }, function(value) {
### `_.pairs(object)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L3114 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3132 "View in source") [Ⓣ][1]
Creates a two dimensional array of an object's key-value pairs, i.e. `[[key1, value1], [key2, value2]]`.
@@ -3889,7 +3889,7 @@ _.pairs({ 'barney': 36, 'fred': 40 });
### `_.pick(object, [callback], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L3154 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3172 "View in source") [Ⓣ][1]
Creates a shallow clone of `object` composed of the specified properties. Property names may be specified as individual arguments or as arrays of property names. If a callback is provided it will be executed for each property of `object` picking the properties the callback returns truey for. The callback is bound to `thisArg` and invoked with three arguments; *(value, key, object)*.
@@ -3920,7 +3920,7 @@ _.pick({ 'name': 'fred', '_userid': 'fred1' }, function(value, key) {
### `_.transform(object, [callback=identity], [accumulator], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L3209 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3227 "View in source") [Ⓣ][1]
An alternative to `_.reduce` this method transforms `object` to a new `accumulator` object which is the result of running each of its own enumerable properties through a callback, with each callback execution potentially mutating the `accumulator` object. The callback is bound to `thisArg` and invoked with four arguments; *(accumulator, value, key, object)*. Callbacks may exit iteration early by explicitly returning `false`.
@@ -3957,7 +3957,7 @@ var mapped = _.transform({ 'a': 1, 'b': 2, 'c': 3 }, function(result, num, key)
### `_.values(object)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L3243 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3261 "View in source") [Ⓣ][1]
Creates an array composed of the own enumerable property values of `object`.
@@ -3988,7 +3988,7 @@ _.values({ 'one': 1, 'two': 2, 'three': 3 });
### `_.now`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L6333 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6351 "View in source") [Ⓣ][1]
*(unknown)*: Gets the number of milliseconds that have elapsed since the Unix epoch *(1 January `1970 00`:00:00 UTC)*.
@@ -4007,7 +4007,7 @@ _.defer(function() { console.log(_.now() - stamp); });
### `_.constant(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L6107 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6125 "View in source") [Ⓣ][1]
Creates a function that returns `value`.
@@ -4033,7 +4033,7 @@ getter() === object;
### `_.createCallback([func=identity], [thisArg], [argCount])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L6144 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6162 "View in source") [Ⓣ][1]
Produces a callback bound to an optional `thisArg`. If `func` is a property name the created callback will return the property value for a given element. If `func` is an object the created callback will return `true` for elements that contain the equivalent object properties, otherwise it will return `false`.
@@ -4072,7 +4072,7 @@ _.filter(characters, 'age__gt38');
### `_.escape(string)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L6193 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6211 "View in source") [Ⓣ][1]
Converts the characters `&`, `<`, `>`, `"`, and `'` in `string` to their corresponding HTML entities.
@@ -4096,7 +4096,7 @@ _.escape('Fred, Wilma, & Pebbles');
### `_.identity(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L6211 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6229 "View in source") [Ⓣ][1]
This method returns the first argument provided to it.
@@ -4121,7 +4121,7 @@ _.identity(object) === object;
### `_.mixin([object=lodash], source, [options])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L6243 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6261 "View in source") [Ⓣ][1]
Adds function properties of a source object to the destination object. If `object` is a function methods will be added to its prototype as well.
@@ -4157,7 +4157,7 @@ _('fred').capitalize();
### `_.noConflict()`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L6299 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6317 "View in source") [Ⓣ][1]
Reverts the '_' variable to its previous value and returns a reference to the `lodash` function.
@@ -4177,7 +4177,7 @@ var lodash = _.noConflict();
### `_.noop()`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L6316 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6334 "View in source") [Ⓣ][1]
A no-operation function.
@@ -4196,7 +4196,7 @@ _.noop(object) === undefined;
### `_.parseInt(value, [radix])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L6356 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6374 "View in source") [Ⓣ][1]
Converts the given value into an integer of the specified radix. If `radix` is `undefined` or `0` a `radix` of `10` is used unless the `value` is a hexadecimal, in which case a `radix` of `16` is used.
@@ -4223,7 +4223,7 @@ _.parseInt('08');
### `_.property(key)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L6385 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6403 "View in source") [Ⓣ][1]
Creates a "_.pluck" style function, which returns the `key` value of a given object.
@@ -4257,7 +4257,7 @@ _.sortBy(characters, getName);
### `_.random([min=0], [max=1], [floating=false])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L6418 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6436 "View in source") [Ⓣ][1]
Produces a random number between `min` and `max` *(inclusive)*. If only one argument is provided a number between `0` and the given number will be returned. If `floating` is truey or either `min` or `max` are floats a floating-point number will be returned instead of an integer.
@@ -4292,7 +4292,7 @@ _.random(1.2, 5.2);
### `_.result(object, key)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L6476 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6494 "View in source") [Ⓣ][1]
Resolves the value of property `key` on `object`. If `key` is a function it will be invoked with the `this` binding of `object` and its result returned, else the property value is returned. If `object` is falsey then `undefined` is returned.
@@ -4327,7 +4327,7 @@ _.result(object, 'stuff');
### `_.runInContext([context=root])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L469 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L469 "View in source") [Ⓣ][1]
Create a new `lodash` function using the given context object.
@@ -4345,7 +4345,7 @@ Create a new `lodash` function using the given context object.
### `_.template(text, data, [options], [options.escape], [options.evaluate], [options.imports], [options.interpolate], [sourceURL], [variable])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L6569 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6587 "View in source") [Ⓣ][1]
A micro-templating method that handles arbitrary delimiters, preserves whitespace, and correctly escapes quotes within interpolated code.
@@ -4439,7 +4439,7 @@ fs.writeFileSync(path.join(cwd, 'jst.js'), '\
### `_.times(n, callback, [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L6692 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6710 "View in source") [Ⓣ][1]
Executes the callback `n` times, returning an array of the results of each callback execution. The callback is bound to `thisArg` and invoked with one argument; *(index)*.
@@ -4471,7 +4471,7 @@ _.times(3, function(n) { this.cast(n); }, mage);
### `_.unescape(string)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L6719 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6737 "View in source") [Ⓣ][1]
The inverse of `_.escape` this method converts the HTML entities `&`, `<`, `>`, `"`, and `'` in `string` to their corresponding characters.
@@ -4495,7 +4495,7 @@ _.unescape('Fred, Barney & Pebbles');
### `_.uniqueId([prefix])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L6739 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6757 "View in source") [Ⓣ][1]
Generates a unique ID. If `prefix` is provided the ID will be appended to it.
@@ -4529,7 +4529,7 @@ _.uniqueId();
### `_.templateSettings.imports._`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L867 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L867 "View in source") [Ⓣ][1]
A reference to the `lodash` function.
@@ -4548,7 +4548,7 @@ A reference to the `lodash` function.
### `_.VERSION`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L7060 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L7078 "View in source") [Ⓣ][1]
*(string)*: The semantic version number.
@@ -4560,7 +4560,7 @@ A reference to the `lodash` function.
### `_.support`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L676 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L676 "View in source") [Ⓣ][1]
*(Object)*: An object used to flag environments features.
@@ -4572,7 +4572,7 @@ A reference to the `lodash` function.
### `_.support.argsClass`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L693 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L693 "View in source") [Ⓣ][1]
*(boolean)*: Detect if an `arguments` object's [[Class]] is resolvable *(all but Firefox < `4`, IE < `9`)*.
@@ -4584,7 +4584,7 @@ A reference to the `lodash` function.
### `_.support.argsObject`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L701 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L701 "View in source") [Ⓣ][1]
*(boolean)*: Detect if `arguments` objects are `Object` objects *(all but Narwhal and Opera < `10.5`)*.
@@ -4596,7 +4596,7 @@ A reference to the `lodash` function.
### `_.support.enumErrorProps`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L710 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L710 "View in source") [Ⓣ][1]
*(boolean)*: Detect if `name` or `message` properties of `Error.prototype` are enumerable by default. *(IE < `9`, Safari < `5.1`)*
@@ -4608,7 +4608,7 @@ A reference to the `lodash` function.
### `_.support.enumPrototypes`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L723 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L723 "View in source") [Ⓣ][1]
*(boolean)*: Detect if `prototype` properties are enumerable by default.
@@ -4622,7 +4622,7 @@ Firefox < `3.6`, Opera > `9.50` - Opera < `11.60`, and Safari < `5.1` *(if the p
### `_.support.funcDecomp`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L732 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L732 "View in source") [Ⓣ][1]
*(boolean)*: Detect if functions can be decompiled by `Function#toString` *(all but PS3 and older Opera mobile browsers & avoided in Windows `8` apps)*.
@@ -4634,7 +4634,7 @@ Firefox < `3.6`, Opera > `9.50` - Opera < `11.60`, and Safari < `5.1` *(if the p
### `_.support.funcNames`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L740 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L740 "View in source") [Ⓣ][1]
*(boolean)*: Detect if `Function#name` is supported *(all but IE)*.
@@ -4646,7 +4646,7 @@ Firefox < `3.6`, Opera > `9.50` - Opera < `11.60`, and Safari < `5.1` *(if the p
### `_.support.nonEnumArgs`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L749 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L749 "View in source") [Ⓣ][1]
*(boolean)*: Detect if `arguments` object indexes are non-enumerable *(Firefox < `4`, IE < `9`, PhantomJS, Safari < `5.1`)*.
@@ -4658,7 +4658,7 @@ Firefox < `3.6`, Opera > `9.50` - Opera < `11.60`, and Safari < `5.1` *(if the p
### `_.support.nonEnumShadows`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L760 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L760 "View in source") [Ⓣ][1]
*(boolean)*: Detect if properties shadowing those on `Object.prototype` are non-enumerable.
@@ -4672,7 +4672,7 @@ In IE < `9` an objects own properties, shadowing non-enumerable ones, are made n
### `_.support.ownLast`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L768 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L768 "View in source") [Ⓣ][1]
*(boolean)*: Detect if own properties are iterated after inherited properties *(all but IE < `9`)*.
@@ -4684,7 +4684,7 @@ In IE < `9` an objects own properties, shadowing non-enumerable ones, are made n
### `_.support.spliceObjects`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L782 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L782 "View in source") [Ⓣ][1]
*(boolean)*: Detect if `Array#shift` and `Array#splice` augment array-like objects correctly.
@@ -4698,7 +4698,7 @@ Firefox < `10`, IE compatibility mode, and IE < `9` have buggy Array `shift()` a
### `_.support.unindexedChars`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L793 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L793 "View in source") [Ⓣ][1]
*(boolean)*: Detect lack of support for accessing string characters by index.
@@ -4712,7 +4712,7 @@ IE < `8` can't access characters by index and IE `8` can only access characters
### `_.templateSettings`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L819 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L819 "View in source") [Ⓣ][1]
*(Object)*: By default, the template delimiters used by Lo-Dash are similar to those in embedded Ruby *(ERB)*. Change the following template settings to use alternative delimiters.
@@ -4724,7 +4724,7 @@ IE < `8` can't access characters by index and IE `8` can only access characters
### `_.templateSettings.escape`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L827 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L827 "View in source") [Ⓣ][1]
*(RegExp)*: Used to detect `data` property values to be HTML-escaped.
@@ -4736,7 +4736,7 @@ IE < `8` can't access characters by index and IE `8` can only access characters
### `_.templateSettings.evaluate`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L835 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L835 "View in source") [Ⓣ][1]
*(RegExp)*: Used to detect code to be evaluated.
@@ -4748,7 +4748,7 @@ IE < `8` can't access characters by index and IE `8` can only access characters
### `_.templateSettings.interpolate`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L843 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L843 "View in source") [Ⓣ][1]
*(RegExp)*: Used to detect `data` property values to inject.
@@ -4760,7 +4760,7 @@ IE < `8` can't access characters by index and IE `8` can only access characters
### `_.templateSettings.variable`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L851 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L851 "View in source") [Ⓣ][1]
*(string)*: Used to reference the data object in the template text.
@@ -4772,7 +4772,7 @@ IE < `8` can't access characters by index and IE `8` can only access characters
### `_.templateSettings.imports`
-# [Ⓢ](https://github.com/lodash/lodash/blob/master/lodash.js#L859 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L859 "View in source") [Ⓣ][1]
*(Object)*: Used to import variables into the compiled template.
@@ -4787,4 +4787,4 @@ IE < `8` can't access characters by index and IE `8` can only access characters
- [1]: #arrays "Jump back to the TOC."
\ No newline at end of file
+ [1]: #arrays "Jump back to the TOC."
diff --git a/doc/parse.php b/doc/parse.php
index 681d6e92e1..3fa7a9d086 100644
--- a/doc/parse.php
+++ b/doc/parse.php
@@ -24,9 +24,9 @@
// generate Markdown
$markdown = docdown(array(
'path' => '../' . $filePath,
- 'title' => 'Lo-Dash v' . $version . '',
+ 'title' => 'Lo-Dash v' . $version . '',
'toc' => 'categories',
- 'url' => 'https://github.com/lodash/lodash/blob/master/lodash.js'
+ 'url' => 'https://github.com/lodash/lodash/blob/' . $version . '/lodash.js'
));
// save to a `.md` file
@@ -35,4 +35,4 @@
// print
header('Content-Type: text/plain;charset=utf-8');
echo $markdown . PHP_EOL;
-?>
\ No newline at end of file
+?>
diff --git a/lodash.js b/lodash.js
index 363ec82e31..5b3790361d 100644
--- a/lodash.js
+++ b/lodash.js
@@ -1,6 +1,6 @@
/**
* @license
- * Lo-Dash 2.4.0
+ * Lo-Dash 2.4.1
* Copyright 2012-2013 The Dojo Foundation
* Based on Underscore.js 1.5.2
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
@@ -517,7 +517,7 @@
clearTimeout = context.clearTimeout,
floor = Math.floor,
fnToString = Function.prototype.toString,
- getPrototypeOf = reNative.test(getPrototypeOf = Object.getPrototypeOf) && getPrototypeOf,
+ getPrototypeOf = isNative(getPrototypeOf = Object.getPrototypeOf) && getPrototypeOf,
hasOwnProperty = objectProto.hasOwnProperty,
push = arrayRef.push,
propertyIsEnumerable = objectProto.propertyIsEnumerable,
@@ -530,18 +530,18 @@
// IE 8 only accepts DOM elements
try {
var o = {},
- func = reNative.test(func = Object.defineProperty) && func,
+ func = isNative(func = Object.defineProperty) && func,
result = func(o, o, o) && func;
} catch(e) { }
return result;
}());
/* Native method shortcuts for methods with the same name as other `lodash` methods */
- var nativeCreate = reNative.test(nativeCreate = Object.create) && nativeCreate,
- nativeIsArray = reNative.test(nativeIsArray = Array.isArray) && nativeIsArray,
+ var nativeCreate = isNative(nativeCreate = Object.create) && nativeCreate,
+ nativeIsArray = isNative(nativeIsArray = Array.isArray) && nativeIsArray,
nativeIsFinite = context.isFinite,
nativeIsNaN = context.isNaN,
- nativeKeys = reNative.test(nativeKeys = Object.keys) && nativeKeys,
+ nativeKeys = isNative(nativeKeys = Object.keys) && nativeKeys,
nativeMax = Math.max,
nativeMin = Math.min,
nativeParseInt = context.parseInt,
@@ -729,7 +729,7 @@
* @memberOf _.support
* @type boolean
*/
- support.funcDecomp = !reNative.test(context.WinRTError) && reThis.test(runInContext);
+ support.funcDecomp = !isNative(context.WinRTError) && reThis.test(runInContext);
/**
* Detect if `Function#name` is supported (all but IE).
@@ -1004,7 +1004,10 @@
// `Function#bind` spec
// http://es5.github.io/#x15.3.4.5
if (partialArgs) {
- var args = partialArgs.slice();
+ // avoid `arguments` object deoptimizations by using `slice` instead
+ // of `Array.prototype.slice.call` and not assigning `arguments` to a
+ // variable as a ternary expression
+ var args = slice(partialArgs);
push.apply(args, arguments);
}
// mimic the constructor's `return` behavior
@@ -1221,7 +1224,7 @@
function bound() {
var thisBinding = isBind ? thisArg : this;
if (partialArgs) {
- var args = partialArgs.slice();
+ var args = slice(partialArgs);
push.apply(args, arguments);
}
if (partialRightArgs || isCurry) {
@@ -1446,51 +1449,54 @@
// recursively compare objects and arrays (susceptible to call stack limits)
if (isArr) {
+ // compare lengths to determine if a deep comparison is necessary
length = a.length;
size = b.length;
-
- // compare lengths to determine if a deep comparison is necessary
- result = size == a.length;
- if (!result && !isWhere) {
- return result;
- }
- // deep compare the contents, ignoring non-numeric properties
- while (size--) {
- var index = length,
- value = b[size];
-
- if (isWhere) {
- while (index--) {
- if ((result = baseIsEqual(a[index], value, callback, isWhere, stackA, stackB))) {
- break;
+ result = size == length;
+
+ if (result || isWhere) {
+ // deep compare the contents, ignoring non-numeric properties
+ while (size--) {
+ var index = length,
+ value = b[size];
+
+ if (isWhere) {
+ while (index--) {
+ if ((result = baseIsEqual(a[index], value, callback, isWhere, stackA, stackB))) {
+ break;
+ }
}
+ } else if (!(result = baseIsEqual(a[size], value, callback, isWhere, stackA, stackB))) {
+ break;
}
- } else if (!(result = baseIsEqual(a[size], value, callback, isWhere, stackA, stackB))) {
- break;
}
}
- return result;
}
- // deep compare objects using `forIn`, instead of `forOwn`, to avoid `Object.keys`
- // which, in this case, is more costly
- forIn(b, function(value, key, b) {
- if (hasOwnProperty.call(b, key)) {
- // count the number of properties.
- size++;
- // deep compare each property value.
- return (result = hasOwnProperty.call(a, key) && baseIsEqual(a[key], value, callback, isWhere, stackA, stackB));
- }
- });
-
- if (result && !isWhere) {
- // ensure both objects have the same number of properties
- forIn(a, function(value, key, a) {
- if (hasOwnProperty.call(a, key)) {
- // `size` will be `-1` if `a` has more properties than `b`
- return (result = --size > -1);
+ else {
+ // deep compare objects using `forIn`, instead of `forOwn`, to avoid `Object.keys`
+ // which, in this case, is more costly
+ forIn(b, function(value, key, b) {
+ if (hasOwnProperty.call(b, key)) {
+ // count the number of properties.
+ size++;
+ // deep compare each property value.
+ return (result = hasOwnProperty.call(a, key) && baseIsEqual(a[key], value, callback, isWhere, stackA, stackB));
}
});
+
+ if (result && !isWhere) {
+ // ensure both objects have the same number of properties
+ forIn(a, function(value, key, a) {
+ if (hasOwnProperty.call(a, key)) {
+ // `size` will be `-1` if `a` has more properties than `b`
+ return (result = --size > -1);
+ }
+ });
+ }
}
+ stackA.pop();
+ stackB.pop();
+
if (initedStack) {
releaseArray(stackA);
releaseArray(stackB);
@@ -1597,13 +1603,8 @@
if (isLarge) {
var cache = createCache(seen);
- if (cache) {
- indexOf = cacheIndexOf;
- seen = cache;
- } else {
- isLarge = false;
- seen = callback ? seen : (releaseArray(seen), result);
- }
+ indexOf = cacheIndexOf;
+ seen = cache;
}
while (++index < length) {
var value = array[index],
@@ -1703,8 +1704,14 @@
}
var bindData = func && func.__bindData__;
if (bindData && bindData !== true) {
- bindData = bindData.slice();
-
+ // clone `bindData`
+ bindData = slice(bindData);
+ if (bindData[2]) {
+ bindData[2] = slice(bindData[2]);
+ }
+ if (bindData[3]) {
+ bindData[3] = slice(bindData[3]);
+ }
// set `thisBinding` is not previously bound
if (isBind && !(bindData[1] & 1)) {
bindData[4] = thisArg;
@@ -1723,7 +1730,7 @@
}
// append partial right arguments
if (isPartialRight) {
- push.apply(bindData[3] || (bindData[3] = []), partialRightArgs);
+ unshift.apply(bindData[3] || (bindData[3] = []), partialRightArgs);
}
// merge flags
bindData[1] |= bitmask;
@@ -1807,6 +1814,17 @@
return result;
}
+ /**
+ * Checks if `value` is a native function.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if the `value` is a native function, else `false`.
+ */
+ function isNative(value) {
+ return typeof value == 'function' && reNative.test(value);
+ }
+
/**
* Sets `this` binding data on a given function.
*
@@ -2858,7 +2876,7 @@
return false;
}
var valueOf = value.valueOf,
- objProto = typeof valueOf == 'function' && (objProto = getPrototypeOf(valueOf)) && getPrototypeOf(objProto);
+ objProto = isNative(valueOf) && (objProto = getPrototypeOf(valueOf)) && getPrototypeOf(objProto);
return objProto
? (value == objProto || getPrototypeOf(value) == objProto)
@@ -5361,7 +5379,7 @@
}
/**
- * Creates an array that is the smymetric difference of the provided arrays.
+ * Creates an array that is the symmetric difference of the provided arrays.
* See http://en.wikipedia.org/wiki/Symmetric_difference.
*
* @static
@@ -6330,7 +6348,7 @@
* _.defer(function() { console.log(_.now() - stamp); });
* // => logs the number of milliseconds it took for the deferred function to be called
*/
- var now = reNative.test(now = Date.now) && now || function() {
+ var now = isNative(now = Date.now) && now || function() {
return new Date().getTime();
};
@@ -7057,7 +7075,7 @@
* @memberOf _
* @type string
*/
- lodash.VERSION = '2.4.0';
+ lodash.VERSION = '2.4.1';
// add "Chaining" functions to the wrapper
lodash.prototype.chain = wrapperChain;
diff --git a/package.json b/package.json
index bec82e5179..499f5212a0 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash",
- "version": "2.4.0",
+ "version": "2.4.1",
"description": "A utility library delivering consistency, customization, performance, & extras.",
"homepage": "http://lodash.com/",
"license": "MIT",
diff --git a/test/asset/qunit-extras.js b/test/asset/qunit-extras.js
deleted file mode 100644
index 3f54a89396..0000000000
--- a/test/asset/qunit-extras.js
+++ /dev/null
@@ -1,198 +0,0 @@
-;(function(root, undefined) {
- 'use strict';
-
- /** Native method shortcut */
- var unshift = Array.prototype.unshift;
-
- /** Used to match HTML entities */
- var reEscapedHtml = /(&|<|>|"|')/g;
-
- /** Used to match parts of the assert message */
- var reDied = /^Died on test #\d+/,
- reExpected = /Expected: *<\/th>([\s\S]*?)<\/pre>/,
- reMessage = /^([\s\S]*?)<\/span>/;
-
- /** Used to convert HTML entities to characters */
- var htmlUnescapes = {
- '&': '&',
- '<': '<',
- '>': '>',
- '"': '"',
- ''': "'"
- };
-
- /** Detect free variable `exports` */
- var freeExports = typeof exports == 'object' && exports;
-
- /** Detect free variable `global`, from Node.js or Browserified code, and use it as `root` */
- var freeGlobal = typeof global == 'object' && global;
- if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) {
- root = freeGlobal;
- }
-
- /*--------------------------------------------------------------------------*/
-
- /**
- * Checks if a given value is present in an array using strict equality
- * for comparisons, i.e. `===`.
- *
- * @oruvate
- * @param {Array} array The array to iterate over.
- * @param {*} target The value to check for.
- * @returns {boolean} Returns `true` if the `target` element is found, else `false`.
- */
- function contains(array, value) {
- var index = -1,
- length = array ? array.length : 0;
-
- while (++index < length) {
- if (array[index] === value) {
- return true;
- }
- }
- return false;
- }
-
- /**
- * Resolves the value of `property` on `object`. If `object` is falsey then
- * `undefined` is returned.
- *
- * @private
- * @param {Object} object The object to inspect.
- * @param {string} property The property to get the value of.
- * @returns {*} Returns the resolved value.
- */
- function result(object, property) {
- return object ? object[property] : undefined;
- }
-
- /**
- * Converts the HTML entities `&`, `<`, `>`, `"`, and `'`
- * in `string` to their corresponding characters.
- *
- * @private
- * @param {string} string The string to unescape.
- * @returns {string} Returns the unescaped string.
- */
- function unescape(string) {
- return string == null ? '' : String(string).replace(reEscapedHtml, unescapeHtmlChar);
- }
-
- /**
- * Used by `unescape` to convert HTML entities to characters.
- *
- * @private
- * @param {string} match The matched character to unescape.
- * @returns {string} Returns the unescaped character.
- */
- function unescapeHtmlChar(match) {
- return htmlUnescapes[match];
- }
-
- /*--------------------------------------------------------------------------*/
-
- /**
- * Installs the QUnit additions on the given `context` object.
- *
- * @memberOf exports
- * @param {Object} context The context object.
- */
- function runInContext(context) {
- // exit early if no `context` is provided or if `QUnit` does not exist
- if (!context || !context.QUnit) {
- return;
- }
-
- /** Shorten `context.QUnit.QUnit` to `context.QUnit` */
- var QUnit = context.QUnit = context.QUnit.QUnit || context.QUnit;
-
- /** The number of retries async tests have to succeed */
- QUnit.config.asyncRetries = 0;
-
- /** An object of excused tests and assertions */
- QUnit.config.excused = {};
-
- /**
- * A callback triggered at the start of every test.
- *
- * @memberOf QUnit
- * @param {Object} details An object with `module` and `name` properties.
- */
- QUnit.testStart(function(details) {
- var excused = QUnit.config.excused || {},
- excusedTests = excused[details.module],
- excusedAsserts = excusedTests && excusedTests[details.name];
-
- var test = QUnit.config.current,
- finish = test.finish;
-
- // allow async tests to retry
- if (test.async && !test.retries) {
- test.retries = 0;
- test.finish = function() {
- var asserts = this.assertions,
- index = -1,
- length = asserts.length,
- queue = QUnit.config.queue;
-
- while (++index < length) {
- var assert = asserts[index];
- if (!assert.result && this.retries < QUnit.config.asyncRetries) {
- this.retries++;
- asserts.length = 0;
-
- var oldLength = queue.length;
- this.queue();
- unshift.apply(queue, queue.splice(oldLength, queue.length - oldLength));
- return;
- }
- }
- finish.call(this);
- };
- }
- // nothing to excuse
- if (!excusedAsserts) {
- return;
- }
- // excuse the entire test
- if (excusedAsserts === true) {
- test.async = false;
- test.callback = function() {};
- test.expected = 0;
- return;
- }
- // excuse specific assertions
- test.finish = function() {
- var asserts = this.assertions,
- index = -1,
- length = asserts.length;
-
- while (++index < length) {
- var assert = asserts[index],
- message = unescape(result(reMessage.exec(assert.message), 1)),
- died = result(reDied.exec(message), 0),
- expected = unescape(result(reExpected.exec(assert.message), 1));
-
- if ((message && contains(excusedAsserts, message)) ||
- (died && contains(excusedAsserts, died)) ||
- (expected && (
- contains(excusedAsserts, expected) ||
- contains(excusedAsserts, expected.replace(/\s+/g, ''))
- ))) {
- assert.result = true;
- }
- }
- finish.call(this);
- };
- });
- }
-
- /*--------------------------------------------------------------------------*/
-
- // expose QUnit extras
- if (freeExports && !freeExports.nodeType) {
- freeExports.runInContext = runInContext;
- } else {
- runInContext(root);
- }
-}(this));
diff --git a/test/backbone.html b/test/backbone.html
index e3ebac16ac..4f7b03aa83 100644
--- a/test/backbone.html
+++ b/test/backbone.html
@@ -18,11 +18,11 @@
Test
+
+
-
-
+
-
+
-
|