diff --git a/README.md b/README.md
index 11aefd27ed..de18f8c1d2 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# Lo-Dash v1.1.0
+# Lo-Dash v1.1.1
[](http://travis-ci.org/bestiejs/lodash)
A low-level utility library delivering consistency, [customization](https://github.com/bestiejs/lodash#custom-builds), [performance](http://lodash.com/benchmarks), and [extra features](https://github.com/bestiejs/lodash#features).
@@ -6,24 +6,24 @@ A low-level utility library delivering consistency, [customization](https://gith
## Download
* Lo-Dash builds (for modern environments):
-[Development](https://raw.github.com/bestiejs/lodash/v1.1.0/dist/lodash.js) and
-[Production](https://raw.github.com/bestiejs/lodash/v1.1.0/dist/lodash.min.js)
+[Development](https://raw.github.com/bestiejs/lodash/v1.1.1/dist/lodash.js) and
+[Production](https://raw.github.com/bestiejs/lodash/v1.1.1/dist/lodash.min.js)
* Lo-Dash compatibility builds (for legacy and modern environments):
-[Development](https://raw.github.com/bestiejs/lodash/v1.1.0/dist/lodash.compat.js) and
-[Production](https://raw.github.com/bestiejs/lodash/v1.1.0/dist/lodash.compat.min.js)
+[Development](https://raw.github.com/bestiejs/lodash/v1.1.1/dist/lodash.compat.js) and
+[Production](https://raw.github.com/bestiejs/lodash/v1.1.1/dist/lodash.compat.min.js)
* Underscore compatibility builds:
-[Development](https://raw.github.com/bestiejs/lodash/v1.1.0/dist/lodash.underscore.js) and
-[Production](https://raw.github.com/bestiejs/lodash/v1.1.0/dist/lodash.underscore.min.js)
+[Development](https://raw.github.com/bestiejs/lodash/v1.1.1/dist/lodash.underscore.js) and
+[Production](https://raw.github.com/bestiejs/lodash/v1.1.1/dist/lodash.underscore.min.js)
-* CDN copies of ≤ v1.1.0’s builds are available on [cdnjs](http://cdnjs.com/) thanks to [CloudFlare](http://www.cloudflare.com/):
-[Lo-Dash dev](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.1.0/lodash.js),
-[Lo-Dash prod](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.1.0/lodash.min.js),
-[Lo-Dash compat-dev](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.1.0/lodash.compat.js),
-[Lo-Dash compat-prod](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.1.0/lodash.compat.min.js),
-[Underscore compat-dev](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.1.0/lodash.underscore.js), and
-[Underscore compat-prod](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.1.0/lodash.underscore.min.js)
+* CDN copies of ≤ v1.1.1’s builds are available on [cdnjs](http://cdnjs.com/) thanks to [CloudFlare](http://www.cloudflare.com/):
+[Lo-Dash dev](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.1.1/lodash.js),
+[Lo-Dash prod](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.1.1/lodash.min.js),
+[Lo-Dash compat-dev](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.1.1/lodash.compat.js),
+[Lo-Dash compat-prod](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.1.1/lodash.compat.min.js),
+[Underscore compat-dev](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.1.1/lodash.underscore.js), and
+[Underscore compat-prod](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.1.1/lodash.underscore.min.js)
* For optimal file size, [create a custom build](https://github.com/bestiejs/lodash#custom-builds) with only the features you need
@@ -252,6 +252,11 @@ require({
## Release Notes
+### v1.1.1
+
+ * Ensured the `underscore` build version of `_.forEach` accepts a `thisArg` argument
+ * Updated vendor/tar to work with Node v0.10.x
+
### v1.1.0
* Added `rhino -require` support
diff --git a/build.js b/build.js
index b49647aadb..ba3ece21df 100755
--- a/build.js
+++ b/build.js
@@ -1865,15 +1865,15 @@
' var index = -1,',
' length = collection ? collection.length : 0;',
'',
+ " callback = callback && typeof thisArg == 'undefined' ? callback : lodash.createCallback(callback, thisArg);",
" if (typeof length == 'number') {",
- " callback = callback && typeof thisArg == 'undefined' ? callback : lodash.createCallback(callback, thisArg);",
' while (++index < length) {',
' if (callback(collection[index], index, collection) === false) {',
' break;',
' }',
' }',
' } else {',
- ' each(collection, callback, thisArg);',
+ ' each(collection, callback);',
' }',
' return collection;',
'}',
@@ -2627,7 +2627,7 @@
source = source.replace(matchFunction(source, data.methodName), function(match) {
return match
.replace(/(callback), *thisArg/g, '$1')
- .replace(/^( *)callback *=.+/m, '$1callback || (callback = identity);')
+ .replace(/^ *callback *=.+\n/m, '');
});
}
});
diff --git a/dist/lodash.compat.js b/dist/lodash.compat.js
index eb0c9d966a..c53a906ca4 100644
--- a/dist/lodash.compat.js
+++ b/dist/lodash.compat.js
@@ -1,6 +1,6 @@
/**
* @license
- * Lo-Dash 1.1.0 (Custom Build)
+ * Lo-Dash 1.1.1 (Custom Build)
* Build: `lodash -o ./dist/lodash.compat.js`
* Copyright 2012-2013 The Dojo Foundation
* Based on Underscore.js 1.4.4
@@ -5347,7 +5347,7 @@
* @memberOf _
* @type String
*/
- lodash.VERSION = '1.1.0';
+ lodash.VERSION = '1.1.1';
// add "Chaining" functions to the wrapper
lodash.prototype.toString = wrapperToString;
diff --git a/dist/lodash.compat.min.js b/dist/lodash.compat.min.js
index b68b389964..a614cedb16 100644
--- a/dist/lodash.compat.min.js
+++ b/dist/lodash.compat.min.js
@@ -1,6 +1,6 @@
/**
* @license
- * Lo-Dash 1.1.0 (Custom Build) lodash.com/license
+ * Lo-Dash 1.1.1 (Custom Build) lodash.com/license
* Build: `lodash -o ./dist/lodash.compat.js`
* Underscore.js 1.4.4 underscorejs.org/LICENSE
*/
@@ -40,7 +40,7 @@ var e=Qt.call(n),r=n.length;return e==w||e==A||(ie.argsClass?e==C:H(n))||e==E&&t
for(typeof e=="number"&&(r=(0>e?te(0,r+e):ee(e,r-1))+1);r--;)if(n[r]===t)return r;return-1},a.mixin=kt,a.noConflict=function(){return r._=Tt,this},a.parseInt=Ht,a.random=function(n,t){return null==n&&null==t&&(t=1),n=+n||0,null==t&&(t=n,n=0),n+Mt(ue()*((+t||0)-n+1))},a.reduce=pt,a.reduceRight=st,a.result=function(n,t){var r=n?n[t]:e;return Y(r)?n[t]():r},a.runInContext=t,a.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:le(n).length},a.some=vt,a.sortedIndex=dt,a.template=function(n,t,r){var u=a.templateSettings;
n||(n=""),r=he({},r,u);var o,i=he({},r.imports,u.imports),u=le(i),i=rt(i),p=0,v=r.interpolate||y,h="__p+='",v=$t((r.escape||y).source+"|"+v.source+"|"+(v===g?s:y).source+"|"+(r.evaluate||y).source+"|$","g");n.replace(v,function(t,e,r,u,a,i){return r||(r=u),h+=n.slice(p,i).replace(d,D),e&&(h+="'+__e("+e+")+'"),a&&(o=!0,h+="';"+a+";__p+='"),r&&(h+="'+((__t=("+r+"))==null?'':__t)+'"),p=i+t.length,t}),h+="';\n",v=r=r.variable,v||(r="obj",h="with("+r+"){"+h+"}"),h=(o?h.replace(f,""):h).replace(c,"$1").replace(l,"$1;"),h="function("+r+"){"+(v?"":r+"||("+r+"={});")+"var __t,__p='',__e=_.escape"+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+h+"return __p}";
try{var m=At(u,"return "+h).apply(e,i)}catch(b){throw b.source=h,b}return t?m(t):(m.source=h,m)},a.unescape=function(n){return null==n?"":qt(n).replace(p,G)},a.uniqueId=function(n){var t=++o;return qt(null==n?"":n)+t},a.all=at,a.any=vt,a.detect=it,a.foldl=pt,a.foldr=st,a.include=ut,a.inject=pt,me(a,function(n,t){a.prototype[t]||(a.prototype[t]=function(){var t=[this.__wrapped__];return Gt.apply(t,arguments),n.apply(a,t)})}),a.first=gt,a.last=function(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&null!=t){var o=u;
-for(t=a.createCallback(t,e);o--&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[u-1];return V(n,te(0,u-r))}},a.take=gt,a.head=gt,me(a,function(n,t){a.prototype[t]||(a.prototype[t]=function(t,e){var r=n(this.__wrapped__,t,e);return null==t||e&&typeof t!="function"?r:new K(r)})}),a.VERSION="1.1.0",a.prototype.toString=function(){return qt(this.__wrapped__)},a.prototype.value=xt,a.prototype.valueOf=xt,pe(["join","pop","shift"],function(n){var t=Ft[n];a.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)
+for(t=a.createCallback(t,e);o--&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[u-1];return V(n,te(0,u-r))}},a.take=gt,a.head=gt,me(a,function(n,t){a.prototype[t]||(a.prototype[t]=function(t,e){var r=n(this.__wrapped__,t,e);return null==t||e&&typeof t!="function"?r:new K(r)})}),a.VERSION="1.1.1",a.prototype.toString=function(){return qt(this.__wrapped__)},a.prototype.value=xt,a.prototype.valueOf=xt,pe(["join","pop","shift"],function(n){var t=Ft[n];a.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)
}}),pe(["push","reverse","sort","unshift"],function(n){var t=Ft[n];a.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),pe(["concat","slice","splice"],function(n){var t=Ft[n];a.prototype[n]=function(){return new K(t.apply(this.__wrapped__,arguments))}}),ie.spliceObjects||pe(["pop","shift","splice"],function(n){var t=Ft[n],e="splice"==n;a.prototype[n]=function(){var n=this.__wrapped__,r=t.apply(n,arguments);return 0===n.length&&delete n[0],e?new K(r):r}}),a}var e,r=typeof exports=="object"&&exports,u=typeof module=="object"&&module&&module.exports==r&&module,a=typeof global=="object"&&global;
a.global===a&&(n=a);var o=0,i={},f=/\b__p\+='';/g,c=/\b(__p\+=)''\+/g,l=/(__e\(.*?\)|\b__t\))\+'';/g,p=/&(?:amp|lt|gt|quot|#39);/g,s=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,v=/\w*$/,g=/<%=([\s\S]+?)%>/g,h=/^0+(?=.$)/,y=/($^)/,m=/[&<>"']/g,d=/['\n\r\t\u2028\u2029\\]/g,b="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),C="[object Arguments]",w="[object Array]",j="[object Boolean]",k="[object Date]",x="[object Function]",O="[object Number]",E="[object Object]",S="[object RegExp]",A="[object String]",I={};
I[x]=!1,I[C]=I[w]=I[j]=I[k]=I[O]=I[E]=I[S]=I[A]=!0;var P={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},N={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},$=t();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=$,define(function(){return $})):r&&!r.nodeType?u?(u.exports=$)._=$:r._=$:n._=$})(this);
\ No newline at end of file
diff --git a/dist/lodash.js b/dist/lodash.js
index 4b3d5c71ff..aaf96ece01 100644
--- a/dist/lodash.js
+++ b/dist/lodash.js
@@ -1,6 +1,6 @@
/**
* @license
- * Lo-Dash 1.1.0 (Custom Build)
+ * Lo-Dash 1.1.1 (Custom Build)
* Build: `lodash modern -o ./dist/lodash.js`
* Copyright 2012-2013 The Dojo Foundation
* Based on Underscore.js 1.4.4
@@ -2346,15 +2346,15 @@
var index = -1,
length = collection ? collection.length : 0;
+ callback = callback && typeof thisArg == 'undefined' ? callback : lodash.createCallback(callback, thisArg);
if (typeof length == 'number') {
- callback = callback && typeof thisArg == 'undefined' ? callback : lodash.createCallback(callback, thisArg);
while (++index < length) {
if (callback(collection[index], index, collection) === false) {
break;
}
}
} else {
- forOwn(collection, callback, thisArg);
+ forOwn(collection, callback);
}
return collection;
}
@@ -5145,7 +5145,7 @@
* @memberOf _
* @type String
*/
- lodash.VERSION = '1.1.0';
+ lodash.VERSION = '1.1.1';
// add "Chaining" functions to the wrapper
lodash.prototype.toString = wrapperToString;
diff --git a/dist/lodash.min.js b/dist/lodash.min.js
index cd354fe28d..b70195ed64 100644
--- a/dist/lodash.min.js
+++ b/dist/lodash.min.js
@@ -1,6 +1,6 @@
/**
* @license
- * Lo-Dash 1.1.0 (Custom Build) lodash.com/license
+ * Lo-Dash 1.1.1 (Custom Build) lodash.com/license
* Build: `lodash modern -o ./dist/lodash.js`
* Underscore.js 1.4.4 underscorejs.org/LICENSE
*/
@@ -13,7 +13,7 @@ switch(p){case w:case j:return+n==+t;case C:return n!=+n?t!=+t:0==n?1/n==1/t:n==
for(;v--;)if(l=p,s=t[v],f)for(;l--&&!(c=L(n[l],s,e,r,u,o)););else if(!(c=L(n[v],s,e,r,u,o)))break;return c}return pe(t,function(t,a,i){return Ut.call(i,a)?(v++,c=Ut.call(n,a)&&L(n[a],t,e,r,u,o)):void 0}),c&&!f&&pe(n,function(n,t,e){return Ut.call(e,t)?c=-1<--v:void 0}),c}function Q(n){return typeof n=="function"}function W(n){return n?I[typeof n]:!1}function X(n){return typeof n=="number"||Jt.call(n)==C}function Y(n){return typeof n=="string"||Jt.call(n)==N}function Z(n,t,e){var r=arguments,u=0,o=2;
if(!W(n))return n;if(e===i)var f=r[3],c=r[4],l=r[5];else c=[],l=[],typeof e!="number"&&(o=r.length),3e?Zt(0,u+e):e)||0,typeof u=="number"?a=-1<(Y(n)?n.indexOf(t,e):gt(n,t,e)):se(n,function(n){return++ru&&(u=i)}}else t=!t&&Y(n)?q:a.createCallback(t,e),at(n,function(n,e,a){e=t(n,e,a),e>r&&(r=e,u=n)});return u}function ft(n,t){var e=-1,r=n?n.length:0;if(typeof r=="number")for(var u=Ct(r);++earguments.length;t=a.createCallback(t,r,4);var o=-1,i=n.length;if(typeof i=="number")for(u&&(e=n[++o]);++oarguments.length;if(typeof u!="number")var i=oe(n),u=i.length;return t=a.createCallback(t,r,4),at(n,function(r,a,f){a=i?i[--u]:--u,e=o?(o=!1,n[a]):t(e,n[a],a,f)}),e}function pt(n,t,e){var r;t=a.createCallback(t,e),e=-1;var u=n?n.length:0;
if(typeof u=="number")for(;++ee?Zt(0,r+e):ne(e,r-1))+1);r--;)if(n[r]===t)return r;return-1},a.mixin=wt,a.noConflict=function(){return r._=Rt,this},a.parseInt=Gt,a.random=function(n,t){return null==n&&null==t&&(t=1),n=+n||0,null==t&&(t=n,n=0),n+Kt(ee()*((+t||0)-n+1))},a.reduce=ct,a.reduceRight=lt,a.result=function(n,t){var r=n?n[t]:e;return Q(r)?n[t]():r},a.runInContext=t,a.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:oe(n).length
},a.some=pt,a.sortedIndex=yt,a.template=function(n,t,r){var u=a.templateSettings;n||(n=""),r=le({},r,u);var o,i=le({},r.imports,u.imports),u=oe(i),i=nt(i),p=0,v=r.interpolate||y,h="__p+='",v=At((r.escape||y).source+"|"+v.source+"|"+(v===g?s:y).source+"|"+(r.evaluate||y).source+"|$","g");n.replace(v,function(t,e,r,u,a,i){return r||(r=u),h+=n.slice(p,i).replace(b,T),e&&(h+="'+__e("+e+")+'"),a&&(o=!0,h+="';"+a+";__p+='"),r&&(h+="'+((__t=("+r+"))==null?'':__t)+'"),p=i+t.length,t}),h+="';\n",v=r=r.variable,v||(r="obj",h="with("+r+"){"+h+"}"),h=(o?h.replace(f,""):h).replace(c,"$1").replace(l,"$1;"),h="function("+r+"){"+(v?"":r+"||("+r+"={});")+"var __t,__p='',__e=_.escape"+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+h+"return __p}";
try{var m=Nt(u,"return "+h).apply(e,i)}catch(d){throw d.source=h,d}return t?m(t):(m.source=h,m)},a.unescape=function(n){return null==n?"":$t(n).replace(p,U)},a.uniqueId=function(n){var t=++o;return $t(null==n?"":n)+t},a.all=et,a.any=pt,a.detect=ut,a.foldl=ct,a.foldr=lt,a.include=tt,a.inject=ct,se(a,function(n,t){a.prototype[t]||(a.prototype[t]=function(){var t=[this.__wrapped__];return Vt.apply(t,arguments),n.apply(a,t)})}),a.first=st,a.last=function(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&null!=t){var o=u;
-for(t=a.createCallback(t,e);o--&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[u-1];return M(n,Zt(0,u-r))}},a.take=st,a.head=st,se(a,function(n,t){a.prototype[t]||(a.prototype[t]=function(t,e){var r=n(this.__wrapped__,t,e);return null==t||e&&typeof t!="function"?r:new z(r)})}),a.VERSION="1.1.0",a.prototype.toString=function(){return $t(this.__wrapped__)},a.prototype.value=jt,a.prototype.valueOf=jt,at(["join","pop","shift"],function(n){var t=Bt[n];a.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)
+for(t=a.createCallback(t,e);o--&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[u-1];return M(n,Zt(0,u-r))}},a.take=st,a.head=st,se(a,function(n,t){a.prototype[t]||(a.prototype[t]=function(t,e){var r=n(this.__wrapped__,t,e);return null==t||e&&typeof t!="function"?r:new z(r)})}),a.VERSION="1.1.1",a.prototype.toString=function(){return $t(this.__wrapped__)},a.prototype.value=jt,a.prototype.valueOf=jt,at(["join","pop","shift"],function(n){var t=Bt[n];a.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)
}}),at(["push","reverse","sort","unshift"],function(n){var t=Bt[n];a.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),at(["concat","slice","splice"],function(n){var t=Bt[n];a.prototype[n]=function(){return new z(t.apply(this.__wrapped__,arguments))}}),a}var e,r=typeof exports=="object"&&exports,u=typeof module=="object"&&module&&module.exports==r&&module,a=typeof global=="object"&&global;a.global===a&&(n=a);var o=0,i={},f=/\b__p\+='';/g,c=/\b(__p\+=)''\+/g,l=/(__e\(.*?\)|\b__t\))\+'';/g,p=/&(?:amp|lt|gt|quot|#39);/g,s=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,v=/\w*$/,g=/<%=([\s\S]+?)%>/g,h=/^0+(?=.$)/,y=/($^)/,m=/[&<>"']/g,b=/['\n\r\t\u2028\u2029\\]/g,d="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),_="[object Arguments]",k="[object Array]",w="[object Boolean]",j="[object Date]",C="[object Number]",x="[object Object]",O="[object RegExp]",N="[object String]",E={"[object Function]":!1};
E[_]=E[k]=E[w]=E[j]=E[C]=E[x]=E[O]=E[N]=!0;var I={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},S={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},A=t();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=A,define(function(){return A})):r&&!r.nodeType?u?(u.exports=A)._=A:r._=A:n._=A})(this);
\ No newline at end of file
diff --git a/dist/lodash.underscore.js b/dist/lodash.underscore.js
index 34b0faed9d..ccf632d5ee 100644
--- a/dist/lodash.underscore.js
+++ b/dist/lodash.underscore.js
@@ -1,6 +1,6 @@
/**
* @license
- * Lo-Dash 1.1.0 (Custom Build)
+ * Lo-Dash 1.1.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.4.4
@@ -705,7 +705,6 @@
var index, iterable = collection, result = iterable;
if (!iterable) return result;
if (!objectTypes[typeof iterable]) return result;
- callback || (callback = identity);
for (index in iterable) {
if (callback(iterable[index], index, collection) === indicatorObject) return result;
@@ -738,7 +737,6 @@
var index, iterable = collection, result = iterable;
if (!iterable) return result;
if (!objectTypes[typeof iterable]) return result;
- callback || (callback = identity);
for (index in iterable) {
if (hasOwnProperty.call(iterable, index)) {
@@ -1683,15 +1681,15 @@
var index = -1,
length = collection ? collection.length : 0;
+ callback = callback && typeof thisArg == 'undefined' ? callback : createCallback(callback, thisArg);
if (typeof length == 'number') {
- callback = callback && typeof thisArg == 'undefined' ? callback : createCallback(callback, thisArg);
while (++index < length) {
if (callback(collection[index], index, collection) === indicatorObject) {
break;
}
}
} else {
- forOwn(collection, callback, thisArg);
+ forOwn(collection, callback);
};
}
@@ -4282,7 +4280,7 @@
* @memberOf _
* @type String
*/
- lodash.VERSION = '1.1.0';
+ lodash.VERSION = '1.1.1';
// add functions to `lodash.prototype`
mixin(lodash);
diff --git a/dist/lodash.underscore.min.js b/dist/lodash.underscore.min.js
index ee1c866268..56dab79c70 100644
--- a/dist/lodash.underscore.min.js
+++ b/dist/lodash.underscore.min.js
@@ -1,16 +1,16 @@
/**
* @license
- * Lo-Dash 1.1.0 (Custom Build) lodash.com/license
+ * Lo-Dash 1.1.1 (Custom Build) lodash.com/license
* Build: `lodash underscore exports="amd,commonjs,global,node" -o ./dist/lodash.underscore.js`
* Underscore.js 1.4.4 underscorejs.org/LICENSE
*/
-;(function(n){function t(n,t){var r;if(n&&st[typeof n])for(r in t||(t=W),n)if(jt.call(n,r)&&t(n[r],r,n)===Z)break}function r(n,t){var r;if(n&&st[typeof n])for(r in t||(t=W),n)if(t(n[r],r,n)===Z)break}function e(n){var t,r=[];if(!n||!st[typeof n])return r;for(t in n)jt.call(n,t)&&r.push(t);return r}function u(n){return n instanceof u?n:new c(n)}function o(n,t){var r=n.b,e=t.b;if(n=n.a,t=t.a,n!==t){if(n>t||typeof n=="undefined")return 1;if(nt||typeof n=="undefined")return 1;if(ne&&(e=r,u=n)});else for(;++ou&&(u=r);return u}function F(n,t){var r=-1,e=n?n.length:0;if(typeof e=="number")for(var u=Array(e);++rarguments.length;r=V(r,u,4);var i=-1,a=n.length;if(typeof a=="number")for(o&&(e=n[++i]);++iarguments.length;if(typeof u!="number")var i=$t(n),u=i.length;return t=V(t,e,4),N(n,function(e,a,f){a=i?i[--u]:--u,r=o?(o=K,n[a]):t(r,n[a],a,f)}),r}function D(n,r,e){var u;r=V(r,e),e=-1;var o=n?n.length:0;if(typeof o=="number")for(;++er?Ft(0,u+r):r||0)-1;else if(r)return e=C(n,t),n[e]===t?e:-1;for(;++er?Ft(0,e+r):Rt(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},u.mixin=G,u.noConflict=function(){return n._=ht,this},u.random=function(n,t){return n==J&&t==J&&(t=1),n=+n||0,t==J&&(t=n,n=0),n+dt(qt()*((+t||0)-n+1))
},u.reduce=R,u.reduceRight=q,u.result=function(n,t){var r=n?n[t]:J;return b(r)?n[t]():r},u.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:$t(n).length},u.some=D,u.sortedIndex=C,u.template=function(n,t,r){n||(n=""),r=g({},r,u.templateSettings);var e=0,o="__p+='",i=r.variable;n.replace(RegExp((r.escape||tt).source+"|"+(r.interpolate||tt).source+"|"+(r.evaluate||tt).source+"|$","g"),function(t,r,u,i,f){return o+=n.slice(e,f).replace(et,a),r&&(o+="'+_['escape']("+r+")+'"),i&&(o+="';"+i+";__p+='"),u&&(o+="'+((__t=("+u+"))==null?'':__t)+'"),e=f+t.length,t
}),o+="';\n",i||(i="obj",o="with("+i+"||{}){"+o+"}"),o="function("+i+"){var __t,__p='',__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}"+o+"return __p}";try{var f=Function("_","return "+o)(u)}catch(c){throw c.source=o,c}return t?f(t):(f.source=o,f)},u.unescape=function(n){return n==J?"":(n+"").replace(nt,p)},u.uniqueId=function(n){var t=++Y+"";return n?n+t:t},u.all=O,u.any=D,u.detect=S,u.foldl=R,u.foldr=q,u.include=x,u.inject=R,u.first=T,u.last=function(n,t,r){if(n){var e=0,u=n.length;
-if(typeof t!="number"&&t!=J){var o=u;for(t=V(t,r);o--&&t(n[o],o,n);)e++}else if(e=t,e==J||r)return n[u-1];return xt.call(n,Ft(0,u-e))}},u.take=T,u.head=T,u.chain=function(n){return n=new c(n),n.__chain__=H,n},u.VERSION="1.1.0",G(u),u.prototype.chain=function(){return this.__chain__=H,this},u.prototype.value=function(){return this.__wrapped__},N("pop push reverse shift sort splice unshift".split(" "),function(n){var t=gt[n];u.prototype[n]=function(){var n=this.__wrapped__;return t.apply(n,arguments),!Mt.spliceObjects&&0===n.length&&delete n[0],this
+if(typeof t!="number"&&t!=J){var o=u;for(t=V(t,r);o--&&t(n[o],o,n);)e++}else if(e=t,e==J||r)return n[u-1];return xt.call(n,Ft(0,u-e))}},u.take=T,u.head=T,u.chain=function(n){return n=new c(n),n.__chain__=H,n},u.VERSION="1.1.1",G(u),u.prototype.chain=function(){return this.__chain__=H,this},u.prototype.value=function(){return this.__wrapped__},N("pop push reverse shift sort splice unshift".split(" "),function(n){var t=gt[n];u.prototype[n]=function(){var n=this.__wrapped__;return t.apply(n,arguments),!Mt.spliceObjects&&0===n.length&&delete n[0],this
}}),N(["concat","join","slice"],function(n){var t=gt[n];u.prototype[n]=function(){var n=t.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new c(n),n.__chain__=H),n}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=u,define(function(){return u})):L&&!L.nodeType?Q?(Q.exports=u)._=u:L._=u:n._=u})(this);
\ No newline at end of file
diff --git a/doc/README.md b/doc/README.md
index 653f02f0bd..2cd4713afb 100644
--- a/doc/README.md
+++ b/doc/README.md
@@ -1,4 +1,4 @@
-# Lo-Dash v1.1.0
+# Lo-Dash v1.1.1
@@ -213,7 +213,7 @@
### `_.compact(array)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3255 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L3255 "View in source") [Ⓣ][1]
Creates an array with all falsey values of `array` removed. The values `false`, `null`, `0`, `""`, `undefined` and `NaN` are all falsey.
@@ -237,7 +237,7 @@ _.compact([0, 1, false, 2, '', 3]);
### `_.difference(array [, array1, array2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3285 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L3285 "View in source") [Ⓣ][1]
Creates an array of `array` elements not present in the other arrays using strict equality for comparisons, i.e. `===`.
@@ -262,7 +262,7 @@ _.difference([1, 2, 3, 4, 5], [5, 2, 10]);
### `_.findIndex(collection [, callback=identity, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3319 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L3319 "View in source") [Ⓣ][1]
This method is similar to `_.find`, except that it returns the index of the element that passes the callback check, instead of the element itself.
@@ -288,7 +288,7 @@ _.findIndex(['apple', 'banana', 'beet'], function(food) { return /^b/.test(food)
### `_.first(array [, callback|n, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3389 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L3389 "View in source") [Ⓣ][1]
Gets the first element of the `array`. If a number `n` is passed, the first `n` elements of the `array` are returned. If a `callback` function is passed, elements at the beginning of the array are returned as long as the `callback` returns truthy. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -348,7 +348,7 @@ _.first(food, { 'type': 'fruit' });
### `_.flatten(array [, isShallow=false, callback=identity, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3451 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L3451 "View in source") [Ⓣ][1]
Flattens a nested array *(the nesting can be to any depth)*. If `isShallow` is truthy, `array` will only be flattened a single level. If `callback` is passed, each element of `array` is passed through a callback` before flattening. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -391,7 +391,7 @@ _.flatten(stooges, 'quotes');
### `_.indexOf(array, value [, fromIndex=0])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3504 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L3504 "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, passing `true` for `fromIndex` will run a faster binary search.
@@ -423,7 +423,7 @@ _.indexOf([1, 1, 2, 2, 3, 3], 2, true);
### `_.initial(array [, callback|n=1, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3578 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L3578 "View in source") [Ⓣ][1]
Gets all but the last element of `array`. If a number `n` is passed, the last `n` elements are excluded from the result. If a `callback` function is passed, elements at the end of the array are excluded from the result as long as the `callback` returns truthy. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -480,7 +480,7 @@ _.initial(food, { 'type': 'vegetable' });
### `_.intersection([array1, array2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3612 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L3612 "View in source") [Ⓣ][1]
Computes the intersection of all the passed-in arrays using strict equality for comparisons, i.e. `===`.
@@ -504,7 +504,7 @@ _.intersection([1, 2, 3], [101, 2, 1, 10], [2, 1]);
### `_.last(array [, callback|n, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3704 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L3704 "View in source") [Ⓣ][1]
Gets the last element of the `array`. If a number `n` is passed, the last `n` elements of the `array` are returned. If a `callback` function is passed, elements at the end of the array are returned as long as the `callback` returns truthy. The `callback` is bound to `thisArg` and invoked with three arguments;(value, index, array).
@@ -561,7 +561,7 @@ _.last(food, { 'type': 'vegetable' });
### `_.lastIndexOf(array, value [, fromIndex=array.length-1])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3745 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L3745 "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.
@@ -590,7 +590,7 @@ _.lastIndexOf([1, 2, 3, 1, 2, 3], 2, 3);
### `_.range([start=0], end [, step=1])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3786 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L3786 "View in source") [Ⓣ][1]
Creates an array of numbers *(positive and/or negative)* progressing from `start` up to but not including `end`.
@@ -628,7 +628,7 @@ _.range(0);
### `_.rest(array [, callback|n=1, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3865 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L3865 "View in source") [Ⓣ][1]
The opposite of `_.initial`, this method gets all but the first value of `array`. If a number `n` is passed, the first `n` values are excluded from the result. If a `callback` function is passed, elements at the beginning of the array are excluded from the result as long as the `callback` returns truthy. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -688,7 +688,7 @@ _.rest(food, { 'type': 'fruit' });
### `_.sortedIndex(array, value [, callback=identity, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3929 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L3929 "View in source") [Ⓣ][1]
Uses a binary search to determine the smallest index at which the `value` should be inserted into `array` in order to maintain the sort order of the sorted `array`. If `callback` is passed, it will be executed for `value` and each element in `array` to compute their sort ranking. The `callback` is bound to `thisArg` and invoked with one argument; *(value)*.
@@ -737,7 +737,7 @@ _.sortedIndex(['twenty', 'thirty', 'fifty'], 'fourty', function(word) {
### `_.union([array1, array2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3961 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L3961 "View in source") [Ⓣ][1]
Computes the union of the passed-in arrays using strict equality for comparisons, i.e. `===`.
@@ -761,7 +761,7 @@ _.union([1, 2, 3], [101, 2, 1, 10], [2, 1]);
### `_.uniq(array [, isSorted=false, callback=identity, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4008 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4008 "View in source") [Ⓣ][1]
Creates a duplicate-value-free version of the `array` using strict equality for comparisons, i.e. `===`. If the `array` is already sorted, passing `true` for `isSorted` will run a faster algorithm. If `callback` is passed, each element of `array` is passed through a callback` before uniqueness is computed. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -808,7 +808,7 @@ _.uniq([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
### `_.without(array [, value1, value2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4067 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4067 "View in source") [Ⓣ][1]
Creates an array with all occurrences of the passed values removed using strict equality for comparisons, i.e. `===`.
@@ -833,7 +833,7 @@ _.without([1, 2, 1, 0, 3, 1, 4], 0, 1);
### `_.zip([array1, array2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4098 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4098 "View in source") [Ⓣ][1]
Groups the elements of each array at their corresponding indexes. Useful for separate data sources that are coordinated through matching array indexes. For a matrix of nested arrays, `_.zip.apply(...)` can transpose the matrix in a similar fashion.
@@ -857,7 +857,7 @@ _.zip(['moe', 'larry'], [30, 40], [true, false]);
### `_.zipObject(keys [, values=[]])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4127 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4127 "View in source") [Ⓣ][1]
Creates an object composed from arrays of `keys` and `values`. Pass either a single two dimensional array, i.e. `[[key1, value1], [key2, value2]]`, or two arrays, one of `keys` and one of corresponding `values`.
@@ -892,7 +892,7 @@ _.zipObject(['moe', 'larry'], [30, 40]);
### `_(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L243 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L243 "View in source") [Ⓣ][1]
Creates a `lodash` object, that wraps the given `value`, to enable method chaining.
@@ -923,7 +923,7 @@ The wrapper functions `first` and `last` return wrapped values when `n` is passe
### `_.tap(value, interceptor)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5152 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L5152 "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.
@@ -953,7 +953,7 @@ _([1, 2, 3, 4])
### `_.prototype.toString()`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5169 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L5169 "View in source") [Ⓣ][1]
Produces the `toString` result of the wrapped value.
@@ -974,7 +974,7 @@ _([1, 2, 3]).toString();
### `_.prototype.valueOf()`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5186 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L5186 "View in source") [Ⓣ][1]
Extracts the wrapped value.
@@ -1005,7 +1005,7 @@ _([1, 2, 3]).valueOf();
### `_.at(collection [, index1, index2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2246 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L2246 "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.
@@ -1033,7 +1033,7 @@ _.at(['moe', 'larry', 'curly'], 0, 2);
### `_.contains(collection, target [, fromIndex=0])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2288 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L2288 "View in source") [Ⓣ][1]
Checks if a given `target` element 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.
@@ -1071,7 +1071,7 @@ _.contains('curly', 'ur');
### `_.countBy(collection [, callback=identity, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2342 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L2342 "View in source") [Ⓣ][1]
Creates an object composed of keys returned from running each element of the `collection` through the given `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)*.
@@ -1107,7 +1107,7 @@ _.countBy(['one', 'two', 'three'], 'length');
### `_.every(collection [, callback=identity, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2394 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L2394 "View in source") [Ⓣ][1]
Checks if the `callback` returns a truthy value for **all** elements of a `collection`. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1153,7 +1153,7 @@ _.every(stooges, { 'age': 50 });
### `_.filter(collection [, callback=identity, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2455 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L2455 "View in source") [Ⓣ][1]
Examines each element in a `collection`, returning an array of all elements the `callback` returns truthy for. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1199,7 +1199,7 @@ _.filter(food, { 'type': 'fruit' });
### `_.find(collection [, callback=identity, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2520 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L2520 "View in source") [Ⓣ][1]
Examines each element in a `collection`, returning the first that the `callback` returns truthy for. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1246,7 +1246,7 @@ _.find(food, 'organic');
### `_.forEach(collection [, callback=identity, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2567 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L2567 "View in source") [Ⓣ][1]
Iterates over a `collection`, executing the `callback` for each element in the `collection`. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*. Callbacks may exit iteration early by explicitly returning `false`.
@@ -1278,7 +1278,7 @@ _.forEach({ 'one': 1, 'two': 2, 'three': 3 }, alert);
### `_.groupBy(collection [, callback=identity, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2617 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L2617 "View in source") [Ⓣ][1]
Creates an object composed of keys returned from running each element of the `collection` through the `callback`. The corresponding value of each key is an array of elements passed to `callback` that returned the key. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1315,7 +1315,7 @@ _.groupBy(['one', 'two', 'three'], 'length');
### `_.invoke(collection, methodName [, arg1, arg2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2650 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L2650 "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 passed to each invoked method. If `methodName` is a function, it will be invoked for, and `this` bound to, each element in the `collection`.
@@ -1344,7 +1344,7 @@ _.invoke([123, 456], String.prototype.split, '');
### `_.map(collection [, callback=identity, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2702 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L2702 "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)*.
@@ -1389,7 +1389,7 @@ _.map(stooges, 'name');
### `_.max(collection [, callback=identity, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2759 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L2759 "View in source") [Ⓣ][1]
Retrieves the maximum value of an `array`. If `callback` is passed, it will be executed for each value in the `array` to generate the criterion by which the value is ranked. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, collection)*.
@@ -1431,7 +1431,7 @@ _.max(stooges, 'age');
### `_.min(collection [, callback=identity, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2828 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L2828 "View in source") [Ⓣ][1]
Retrieves the minimum value of an `array`. If `callback` is passed, it will be executed for each value in the `array` to generate the criterion by which the value is ranked. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, collection)*.
@@ -1473,7 +1473,7 @@ _.min(stooges, 'age');
### `_.pluck(collection, property)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2878 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L2878 "View in source") [Ⓣ][1]
Retrieves the value of a specified property from all elements in the `collection`.
@@ -1503,7 +1503,7 @@ _.pluck(stooges, 'name');
### `_.reduce(collection [, callback=identity, accumulator, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2910 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L2910 "View in source") [Ⓣ][1]
Reduces a `collection` to a value that 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 passed, 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)*.
@@ -1541,7 +1541,7 @@ var mapped = _.reduce({ 'a': 1, 'b': 2, 'c': 3 }, function(result, num, key) {
### `_.reduceRight(collection [, callback=identity, accumulator, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2953 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L2953 "View in source") [Ⓣ][1]
This method is similar to `_.reduce`, except that it iterates over a `collection` from right to left.
@@ -1572,7 +1572,7 @@ var flat = _.reduceRight(list, function(a, b) { return a.concat(b); }, []);
### `_.reject(collection [, callback=identity, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3013 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L3013 "View in source") [Ⓣ][1]
The opposite of `_.filter`, this method returns the elements of a `collection` that `callback` does **not** return truthy for.
@@ -1615,7 +1615,7 @@ _.reject(food, { 'type': 'fruit' });
### `_.shuffle(collection)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3034 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L3034 "View in source") [Ⓣ][1]
Creates an array of shuffled `array` values, using a version of the Fisher-Yates shuffle. See http://en.wikipedia.org/wiki/Fisher-Yates_shuffle.
@@ -1639,7 +1639,7 @@ _.shuffle([1, 2, 3, 4, 5, 6]);
### `_.size(collection)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3067 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L3067 "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.
@@ -1669,7 +1669,7 @@ _.size('curly');
### `_.some(collection [, callback=identity, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3114 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L3114 "View in source") [Ⓣ][1]
Checks if the `callback` returns a truthy value for **any** element of a `collection`. The function returns as soon as it finds 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)*.
@@ -1715,7 +1715,7 @@ _.some(food, { 'type': 'meat' });
### `_.sortBy(collection [, callback=identity, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3170 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L3170 "View in source") [Ⓣ][1]
Creates an array of elements, sorted in ascending order by the results of running each element in the `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)*.
@@ -1752,7 +1752,7 @@ _.sortBy(['banana', 'strawberry', 'apple'], 'length');
### `_.toArray(collection)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3205 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L3205 "View in source") [Ⓣ][1]
Converts the `collection` to an array.
@@ -1776,7 +1776,7 @@ Converts the `collection` to an array.
### `_.where(collection, properties)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3237 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L3237 "View in source") [Ⓣ][1]
Examines each element in a `collection`, returning an array of all elements that have the given `properties`. When checking `properties`, this method performs a deep comparison between values to determine if they are equivalent to each other.
@@ -1813,7 +1813,7 @@ _.where(stooges, { 'age': 40 });
### `_.after(n, func)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4167 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4167 "View in source") [Ⓣ][1]
If `n` is greater than `0`, a function is created that is restricted to executing `func`, with the `this` binding and arguments of the created function, only after it is called `n` times. If `n` is less than `1`, `func` is executed immediately, without a `this` binding or additional arguments, and its result is returned.
@@ -1841,7 +1841,7 @@ _.forEach(notes, function(note) {
### `_.bind(func [, thisArg, arg1, arg2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4200 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4200 "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 passed to the bound function.
@@ -1872,7 +1872,7 @@ func();
### `_.bindAll(object [, methodName1, methodName2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4231 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4231 "View in source") [Ⓣ][1]
Binds methods on `object` to `object`, 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.
@@ -1903,7 +1903,7 @@ jQuery('#docs').on('click', view.onClick);
### `_.bindKey(object, key [, arg1, arg2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4277 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4277 "View in source") [Ⓣ][1]
Creates a function that, when called, invokes the method at `object[key]` and prepends any additional `bindKey` arguments to those passed 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.
@@ -1944,7 +1944,7 @@ func();
### `_.compose([func1, func2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4300 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4300 "View in source") [Ⓣ][1]
Creates a function that is the composition of the passed 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.
@@ -1971,7 +1971,7 @@ welcome('moe');
### `_.createCallback([func=identity, thisArg, argCount=3])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4359 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4359 "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`.
@@ -2025,7 +2025,7 @@ _.toLookup(stooges, 'name');
### `_.debounce(func, wait, immediate)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4425 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4425 "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. Pass `true` for `immediate` to cause debounce to invoke `func` on the leading, instead of the trailing, edge of the `wait` timeout. Subsequent calls to the debounced function will return the result of the last `func` call.
@@ -2051,7 +2051,7 @@ jQuery(window).on('resize', lazyLayout);
### `_.defer(func [, arg1, arg2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4467 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4467 "View in source") [Ⓣ][1]
Defers executing the `func` function until the current call stack has cleared. Additional arguments will be passed to `func` when it is invoked.
@@ -2076,7 +2076,7 @@ _.defer(function() { alert('deferred'); });
### `_.delay(func, wait [, arg1, arg2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4493 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4493 "View in source") [Ⓣ][1]
Executes the `func` function after `wait` milliseconds. Additional arguments will be passed to `func` when it is invoked.
@@ -2103,7 +2103,7 @@ _.delay(log, 1000, 'logged later');
### `_.memoize(func [, resolver])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4517 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4517 "View in source") [Ⓣ][1]
Creates a function that memoizes the result of `func`. If `resolver` is passed, it will be used to determine the cache key for storing the result based on the arguments passed to the memoized function. By default, the first argument passed to the memoized function is used as the cache key. The `func` is executed with the `this` binding of the memoized function.
@@ -2129,7 +2129,7 @@ var fibonacci = _.memoize(function(n) {
### `_.once(func)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4544 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4544 "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.
@@ -2155,7 +2155,7 @@ initialize();
### `_.partial(func [, arg1, arg2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4579 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4579 "View in source") [Ⓣ][1]
Creates a function that, when called, invokes `func` with any additional `partial` arguments prepended to those passed to the new function. This method is similar to `_.bind`, except it does **not** alter the `this` binding.
@@ -2182,7 +2182,7 @@ hi('moe');
### `_.partialRight(func [, arg1, arg2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4610 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4610 "View in source") [Ⓣ][1]
This method is similar to `_.partial`, except that `partial` arguments are appended to those passed to the new function.
@@ -2219,7 +2219,7 @@ options.imports
### `_.throttle(func, wait)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4632 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4632 "View in source") [Ⓣ][1]
Creates a function that, when executed, will only call the `func` function at most once per every `wait` milliseconds. If the throttled function is invoked more than once during the `wait` timeout, `func` will also be called on the trailing edge of the timeout. Subsequent calls to the throttled function will return the result of the last `func` call.
@@ -2244,7 +2244,7 @@ jQuery(window).on('scroll', throttled);
### `_.wrap(value, wrapper)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4685 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4685 "View in source") [Ⓣ][1]
Creates a function that passes `value` to the `wrapper` function as its first argument. Additional arguments passed to the function are appended to those passed to the `wrapper` function. The `wrapper` is executed with the `this` binding of the created function.
@@ -2280,7 +2280,7 @@ hello();
### `_.assign(object [, source1, source2, ..., callback, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1052 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L1052 "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` function is passed, it will be executed to produce the assigned values. The `callback` is bound to `thisArg` and invoked with two arguments; *(objectValue, sourceValue)*.
@@ -2318,7 +2318,7 @@ defaults(food, { 'name': 'banana', 'type': 'fruit' });
### `_.clone(value [, deep=false, callback, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1107 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L1107 "View in source") [Ⓣ][1]
Creates a clone of `value`. If `deep` is `true`, nested objects will also be cloned, otherwise they will be assigned by reference. If a `callback` function is passed, it will be executed to produce the cloned values. If `callback` returns `undefined`, cloning will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with one argument; *(value)*.
@@ -2365,7 +2365,7 @@ clone.childNodes.length;
### `_.cloneDeep(value [, callback, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1232 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L1232 "View in source") [Ⓣ][1]
Creates a deep clone of `value`. If a `callback` function is passed, it will be executed to produce the cloned values. If `callback` returns `undefined`, cloning will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with one argument; *(value)*.
@@ -2411,7 +2411,7 @@ clone.node == view.node;
### `_.defaults(object [, source1, source2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1256 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L1256 "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.
@@ -2437,7 +2437,7 @@ _.defaults(food, { 'name': 'banana', 'type': 'fruit' });
### `_.findKey(collection [, callback=identity, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1277 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L1277 "View in source") [Ⓣ][1]
This method is similar to `_.find`, except that it returns the key of the element that passes the callback check, instead of the element itself.
@@ -2463,7 +2463,7 @@ _.findKey({ 'a': 1, 'b': 2, 'c': 3, 'd': 4 }, function(num) { return num % 2 ==
### `_.forIn(object [, callback=identity, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1318 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L1318 "View in source") [Ⓣ][1]
Iterates over `object`'s own and inherited enumerable properties, 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`.
@@ -2499,7 +2499,7 @@ _.forIn(new Dog('Dagny'), function(value, key) {
### `_.forOwn(object [, callback=identity, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1343 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L1343 "View in source") [Ⓣ][1]
Iterates over an object's own enumerable properties, 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`.
@@ -2527,7 +2527,7 @@ _.forOwn({ '0': 'zero', '1': 'one', 'length': 2 }, function(num, key) {
### `_.functions(object)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1360 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L1360 "View in source") [Ⓣ][1]
Creates a sorted array of all enumerable properties, own and inherited, of `object` that have function values.
@@ -2554,7 +2554,7 @@ _.functions(_);
### `_.has(object, property)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1385 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L1385 "View in source") [Ⓣ][1]
Checks if the specified object `property` exists and is a direct property, instead of an inherited property.
@@ -2579,7 +2579,7 @@ _.has({ 'a': 1, 'b': 2, 'c': 3 }, 'b');
### `_.invert(object)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1402 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L1402 "View in source") [Ⓣ][1]
Creates an object composed of the inverted keys and values of the given `object`.
@@ -2603,7 +2603,7 @@ _.invert({ 'first': 'moe', 'second': 'larry' });
### `_.isArguments(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L912 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L912 "View in source") [Ⓣ][1]
Checks if `value` is an `arguments` object.
@@ -2630,7 +2630,7 @@ _.isArguments([1, 2, 3]);
### `_.isArray(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L938 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L938 "View in source") [Ⓣ][1]
Checks if `value` is an array.
@@ -2657,7 +2657,7 @@ _.isArray([1, 2, 3]);
### `_.isBoolean(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1428 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L1428 "View in source") [Ⓣ][1]
Checks if `value` is a boolean value.
@@ -2681,7 +2681,7 @@ _.isBoolean(null);
### `_.isDate(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1445 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L1445 "View in source") [Ⓣ][1]
Checks if `value` is a date.
@@ -2705,7 +2705,7 @@ _.isDate(new Date);
### `_.isElement(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1462 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L1462 "View in source") [Ⓣ][1]
Checks if `value` is a DOM element.
@@ -2729,7 +2729,7 @@ _.isElement(document.body);
### `_.isEmpty(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1487 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L1487 "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".
@@ -2759,7 +2759,7 @@ _.isEmpty('');
### `_.isEqual(a, b [, callback, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1546 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L1546 "View in source") [Ⓣ][1]
Performs a deep comparison between two values to determine if they are equivalent to each other. If `callback` is passed, it will be executed to compare values. If `callback` returns `undefined`, comparisons will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with two arguments; *(a, b)*.
@@ -2804,7 +2804,7 @@ _.isEqual(words, otherWords, function(a, b) {
### `_.isFinite(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1730 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L1730 "View in source") [Ⓣ][1]
Checks if `value` is, or can be coerced to, a finite number.
@@ -2842,7 +2842,7 @@ _.isFinite(Infinity);
### `_.isFunction(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1747 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L1747 "View in source") [Ⓣ][1]
Checks if `value` is a function.
@@ -2866,7 +2866,7 @@ _.isFunction(_);
### `_.isNaN(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1810 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L1810 "View in source") [Ⓣ][1]
Checks if `value` is `NaN`.
@@ -2901,7 +2901,7 @@ _.isNaN(undefined);
### `_.isNull(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1832 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L1832 "View in source") [Ⓣ][1]
Checks if `value` is `null`.
@@ -2928,7 +2928,7 @@ _.isNull(undefined);
### `_.isNumber(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1849 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L1849 "View in source") [Ⓣ][1]
Checks if `value` is a number.
@@ -2952,7 +2952,7 @@ _.isNumber(8.4 * 5);
### `_.isObject(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1777 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L1777 "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('')`)*
@@ -2982,7 +2982,7 @@ _.isObject(1);
### `_.isPlainObject(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1877 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L1877 "View in source") [Ⓣ][1]
Checks if a given `value` is an object created by the `Object` constructor.
@@ -3017,7 +3017,7 @@ _.isPlainObject({ 'name': 'moe', 'age': 40 });
### `_.isRegExp(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1902 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L1902 "View in source") [Ⓣ][1]
Checks if `value` is a regular expression.
@@ -3041,7 +3041,7 @@ _.isRegExp(/moe/);
### `_.isString(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1919 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L1919 "View in source") [Ⓣ][1]
Checks if `value` is a string.
@@ -3065,7 +3065,7 @@ _.isString('moe');
### `_.isUndefined(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1936 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L1936 "View in source") [Ⓣ][1]
Checks if `value` is `undefined`.
@@ -3089,7 +3089,7 @@ _.isUndefined(void 0);
### `_.keys(object)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L974 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L974 "View in source") [Ⓣ][1]
Creates an array composed of the own enumerable property names of `object`.
@@ -3113,7 +3113,7 @@ _.keys({ 'one': 1, 'two': 2, 'three': 3 });
### `_.merge(object [, source1, source2, ..., callback, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1995 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L1995 "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` function is passed, it will be executed to produce the merged values of the destination and source properties. If `callback` returns `undefined`, merging will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with two arguments; *(objectValue, sourceValue)*.
@@ -3169,7 +3169,7 @@ _.merge(food, otherFood, function(a, b) {
### `_.omit(object, callback|[prop1, prop2, ..., thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2102 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L2102 "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` function is passed, it will be executed for each property in the `object`, omitting the properties `callback` returns truthy for. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, key, object)*.
@@ -3200,7 +3200,7 @@ _.omit({ 'name': 'moe', 'age': 40 }, function(value) {
### `_.pairs(object)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2136 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L2136 "View in source") [Ⓣ][1]
Creates a two dimensional array of the given object's key-value pairs, i.e. `[[key1, value1], [key2, value2]]`.
@@ -3224,7 +3224,7 @@ _.pairs({ 'moe': 30, 'larry': 40 });
### `_.pick(object, callback|[prop1, prop2, ..., thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2174 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L2174 "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 `callback` is passed, it will be executed for each property in the `object`, picking the properties `callback` returns truthy for. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, key, object)*.
@@ -3255,7 +3255,7 @@ _.pick({ 'name': 'moe', '_userid': 'moe1' }, function(value, key) {
### `_.values(object)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2211 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L2211 "View in source") [Ⓣ][1]
Creates an array composed of the own enumerable property values of `object`.
@@ -3286,7 +3286,7 @@ _.values({ 'one': 1, 'two': 2, 'three': 3 });
### `_.escape(string)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4709 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4709 "View in source") [Ⓣ][1]
Converts the characters `&`, `<`, `>`, `"`, and `'` in `string` to their corresponding HTML entities.
@@ -3310,7 +3310,7 @@ _.escape('Moe, Larry & Curly');
### `_.identity(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4727 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4727 "View in source") [Ⓣ][1]
This function returns the first argument passed to it.
@@ -3335,7 +3335,7 @@ moe === _.identity(moe);
### `_.mixin(object)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4753 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4753 "View in source") [Ⓣ][1]
Adds functions properties of `object` to the `lodash` function and chainable wrapper.
@@ -3365,7 +3365,7 @@ _('moe').capitalize();
### `_.noConflict()`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4782 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4782 "View in source") [Ⓣ][1]
Reverts the '_' variable to its previous value and returns a reference to the `lodash` function.
@@ -3385,7 +3385,7 @@ var lodash = _.noConflict();
### `_.parseInt(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4803 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4803 "View in source") [Ⓣ][1]
Converts the given `value` into an integer of the specified `radix`.
@@ -3411,7 +3411,7 @@ _.parseInt('08');
### `_.random([min=0, max=1])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4826 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4826 "View in source") [Ⓣ][1]
Produces a random number between `min` and `max` *(inclusive)*. If only one argument is passed, a number between `0` and the given number will be returned.
@@ -3439,7 +3439,7 @@ _.random(5);
### `_.result(object, property)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4865 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4865 "View in source") [Ⓣ][1]
Resolves the value of `property` on `object`. If `property` 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.
@@ -3474,7 +3474,7 @@ _.result(object, 'stuff');
### `_.runInContext([context=window])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L131 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L131 "View in source") [Ⓣ][1]
Create a new `lodash` function using the given `context` object.
@@ -3492,7 +3492,7 @@ Create a new `lodash` function using the given `context` object.
### `_.template(text, data, options)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4952 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L4952 "View in source") [Ⓣ][1]
A micro-templating method that handles arbitrary delimiters, preserves whitespace, and correctly escapes quotes within interpolated code.
@@ -3576,7 +3576,7 @@ fs.writeFileSync(path.join(cwd, 'jst.js'), '\
### `_.times(n, callback [, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5077 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L5077 "View in source") [Ⓣ][1]
Executes the `callback` function `n` times, returning an array of the results of each `callback` execution. The `callback` is bound to `thisArg` and invoked with one argument; *(index)*.
@@ -3608,7 +3608,7 @@ _.times(3, function(n) { this.cast(n); }, mage);
### `_.unescape(string)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5104 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L5104 "View in source") [Ⓣ][1]
The opposite of `_.escape`, this method converts the HTML entities `&`, `<`, `>`, `"`, and `'` in `string` to their corresponding characters.
@@ -3632,7 +3632,7 @@ _.unescape('Moe, Larry & Curly');
### `_.uniqueId([prefix])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5124 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L5124 "View in source") [Ⓣ][1]
Generates a unique ID. If `prefix` is passed, the ID will be appended to it.
@@ -3666,7 +3666,7 @@ _.uniqueId();
### `_.templateSettings.imports._`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L430 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L430 "View in source") [Ⓣ][1]
A reference to the `lodash` function.
@@ -3685,7 +3685,7 @@ A reference to the `lodash` function.
### `_.VERSION`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5360 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L5360 "View in source") [Ⓣ][1]
*(String)*: The semantic version number.
@@ -3697,7 +3697,7 @@ A reference to the `lodash` function.
### `_.support`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L257 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L257 "View in source") [Ⓣ][1]
*(Object)*: An object used to flag environments features.
@@ -3709,7 +3709,7 @@ A reference to the `lodash` function.
### `_.support.argsClass`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L282 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L282 "View in source") [Ⓣ][1]
*(Boolean)*: Detect if an `arguments` object's [[Class]] is resolvable *(all but Firefox < `4`, IE < `9`)*.
@@ -3721,7 +3721,7 @@ A reference to the `lodash` function.
### `_.support.argsObject`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L274 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L274 "View in source") [Ⓣ][1]
*(Boolean)*: Detect if `arguments` objects are `Object` objects *(all but Opera < `10.5`)*.
@@ -3733,7 +3733,7 @@ A reference to the `lodash` function.
### `_.support.enumPrototypes`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L295 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L295 "View in source") [Ⓣ][1]
*(Boolean)*: Detect if `prototype` properties are enumerable by default.
@@ -3747,7 +3747,7 @@ Firefox < `3.6`, Opera > `9.50` - Opera < `11.60`, and Safari < `5.1` *(if the p
### `_.support.fastBind`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L303 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L303 "View in source") [Ⓣ][1]
*(Boolean)*: Detect if `Function#bind` exists and is inferred to be fast *(all but V8)*.
@@ -3759,7 +3759,7 @@ Firefox < `3.6`, Opera > `9.50` - Opera < `11.60`, and Safari < `5.1` *(if the p
### `_.support.nonEnumArgs`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L320 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L320 "View in source") [Ⓣ][1]
*(Boolean)*: Detect if `arguments` object indexes are non-enumerable *(Firefox < `4`, IE < `9`, PhantomJS, Safari < `5.1`)*.
@@ -3771,7 +3771,7 @@ Firefox < `3.6`, Opera > `9.50` - Opera < `11.60`, and Safari < `5.1` *(if the p
### `_.support.nonEnumShadows`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L331 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L331 "View in source") [Ⓣ][1]
*(Boolean)*: Detect if properties shadowing those on `Object.prototype` are non-enumerable.
@@ -3785,7 +3785,7 @@ In IE < `9` an objects own properties, shadowing non-enumerable ones, are made n
### `_.support.ownLast`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L311 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L311 "View in source") [Ⓣ][1]
*(Boolean)*: Detect if own properties are iterated after inherited properties *(all but IE < `9`)*.
@@ -3797,7 +3797,7 @@ In IE < `9` an objects own properties, shadowing non-enumerable ones, are made n
### `_.support.spliceObjects`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L345 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L345 "View in source") [Ⓣ][1]
*(Boolean)*: Detect if `Array#shift` and `Array#splice` augment array-like objects correctly.
@@ -3811,7 +3811,7 @@ Firefox < `10`, IE compatibility mode, and IE < `9` have buggy Array `shift()` a
### `_.support.unindexedChars`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L356 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L356 "View in source") [Ⓣ][1]
*(Boolean)*: Detect lack of support for accessing string characters by index.
@@ -3825,7 +3825,7 @@ IE < `8` can't access characters by index and IE `8` can only access characters
### `_.templateSettings`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L382 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L382 "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.
@@ -3837,7 +3837,7 @@ IE < `8` can't access characters by index and IE `8` can only access characters
### `_.templateSettings.escape`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L390 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L390 "View in source") [Ⓣ][1]
*(RegExp)*: Used to detect `data` property values to be HTML-escaped.
@@ -3849,7 +3849,7 @@ IE < `8` can't access characters by index and IE `8` can only access characters
### `_.templateSettings.evaluate`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L398 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L398 "View in source") [Ⓣ][1]
*(RegExp)*: Used to detect code to be evaluated.
@@ -3861,7 +3861,7 @@ IE < `8` can't access characters by index and IE `8` can only access characters
### `_.templateSettings.interpolate`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L406 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L406 "View in source") [Ⓣ][1]
*(RegExp)*: Used to detect `data` property values to inject.
@@ -3873,7 +3873,7 @@ IE < `8` can't access characters by index and IE `8` can only access characters
### `_.templateSettings.variable`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L414 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L414 "View in source") [Ⓣ][1]
*(String)*: Used to reference the data object in the template text.
@@ -3885,7 +3885,7 @@ IE < `8` can't access characters by index and IE `8` can only access characters
### `_.templateSettings.imports`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L422 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/1.1.1/lodash.js#L422 "View in source") [Ⓣ][1]
*(Object)*: Used to import variables into the compiled template.
@@ -3900,4 +3900,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 e80d37ebbc..2a6647300b 100644
--- a/doc/parse.php
+++ b/doc/parse.php
@@ -21,9 +21,9 @@
// generate Markdown
$markdown = docdown(array(
'path' => '../' . $file,
- 'title' => 'Lo-Dash v1.1.0',
+ 'title' => 'Lo-Dash v1.1.1',
'toc' => 'categories',
- 'url' => 'https://github.com/bestiejs/lodash/blob/master/lodash.js'
+ 'url' => 'https://github.com/lodash/lodash/blob/1.1.1/lodash.js'
));
// save to a .md file
@@ -33,4 +33,4 @@
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 7ad79af562..3b4d6db5ce 100644
--- a/lodash.js
+++ b/lodash.js
@@ -1,6 +1,6 @@
/**
* @license
- * Lo-Dash 1.1.0
+ * Lo-Dash 1.1.1
* Copyright 2012-2013 The Dojo Foundation
* Based on Underscore.js 1.4.4
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
@@ -5357,7 +5357,7 @@
* @memberOf _
* @type String
*/
- lodash.VERSION = '1.1.0';
+ lodash.VERSION = '1.1.1';
// add "Chaining" functions to the wrapper
lodash.prototype.toString = wrapperToString;
diff --git a/package.json b/package.json
index 65f73dd8e6..aadfda5fa6 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash",
- "version": "1.1.0",
+ "version": "1.1.1",
"description": "A low-level utility library delivering consistency, customization, performance, and extra features.",
"homepage": "http://lodash.com",
"main": "./dist/lodash",
diff --git a/test/test-build.js b/test/test-build.js
index 9d3ab240fe..ce28577b0d 100644
--- a/test/test-build.js
+++ b/test/test-build.js
@@ -878,10 +878,11 @@
deepEqual(lodash.defaults({}, new Foo), Foo.prototype, '_.defaults should assign inherited `source` properties: ' + basename);
deepEqual(lodash.extend({}, new Foo), Foo.prototype, '_.extend should assign inherited `source` properties: ' + basename);
- actual = lodash.extend({}, { 'a': 0 }, function(a, b) {
- return this[b];
- }, [2]);
+ var callback = function(a, b) {
+ actual = this[b];
+ };
+ actual = lodash.extend({}, { 'a': 0 }, callback, [2]);
strictEqual(actual.a, 0, '_.extend should ignore `callback` and `thisArg`: ' + basename);
actual = lodash.find(array, function(value) {
@@ -899,6 +900,12 @@
equal(last, _.last(array), '_.forEach should not exit early: ' + basename);
equal(actual, undefined, '_.forEach should return `undefined`: ' + basename);
+ lodash.forEach([1], callback, [2]);
+ equal(actual, 2, '_.forEach supports the `thisArg` argument when iterating arrays: ' + basename);
+
+ lodash.forEach({ 'a': 1 }, callback, { 'a': 2 });
+ equal(actual, 2, '_.forEach supports the `thisArg` argument when iterating objects: ' + basename);
+
array = [{ 'a': [1, 2] }, { 'a': [3] }];
actual = lodash.flatten(array, function(value, index) {
diff --git a/test/test.js b/test/test.js
index 86988c521b..216f590f61 100644
--- a/test/test.js
+++ b/test/test.js
@@ -865,6 +865,20 @@
equal(wrapper.forEach(Boolean), wrapper);
});
+ test('supports the `thisArg` argument', function() {
+ var actual;
+
+ function callback(value, index) {
+ actual = this[index];
+ }
+
+ _.forEach([1], callback, [2]);
+ equal(actual, 2);
+
+ _.forEach({ 'a': 1 }, callback, { 'a': 2 });
+ equal(actual, 2);
+ });
+
_.each({
'literal': 'abc',
'object': Object('abc')