mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 01:17:50 +00:00
Cleanup and rebuild docs and diet.
This commit is contained in:
34
dist/lodash.compat.js
vendored
34
dist/lodash.compat.js
vendored
@@ -486,7 +486,7 @@
|
||||
stringProto = String.prototype;
|
||||
|
||||
/** Used to detect DOM support */
|
||||
var document = context.window && context.window.document;
|
||||
var document = (document = context.window) && document.document;
|
||||
|
||||
/** Used to restore the original `_` reference in `noConflict` */
|
||||
var oldDash = context._;
|
||||
@@ -2081,7 +2081,8 @@
|
||||
* Note: This method is loosely based on the structured clone algorithm. Functions
|
||||
* and DOM nodes are **not** cloned. The enumerable properties of `arguments` objects and
|
||||
* objects created by constructors other than `Object` are cloned to plain `Object` objects.
|
||||
* See http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm.
|
||||
* See the [HTML5 specification](http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm)
|
||||
* for more details.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -2690,7 +2691,8 @@
|
||||
* Checks if `value` is, or can be coerced to, a finite number.
|
||||
*
|
||||
* Note: This is not the same as native `isFinite` which will return true for
|
||||
* booleans and empty strings. See http://es5.github.io/#x15.1.2.5.
|
||||
* booleans and empty strings. See the [ES5 spec](http://es5.github.io/#x15.1.2.5)
|
||||
* for more details.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -2773,7 +2775,8 @@
|
||||
* Checks if `value` is `NaN`.
|
||||
*
|
||||
* Note: This is not the same as native `isNaN` which will return `true` for
|
||||
* `undefined` and other non-numeric values. See http://es5.github.io/#x15.1.2.4.
|
||||
* `undefined` and other non-numeric values. See the [ES5 spec](http://es5.github.io/#x15.1.2.4)
|
||||
* for more details.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -2823,7 +2826,8 @@
|
||||
/**
|
||||
* Checks if `value` is a number.
|
||||
*
|
||||
* Note: `NaN` is considered a number. See http://es5.github.io/#x8.5.
|
||||
* Note: `NaN` is considered a number. See the [ES5 spec](http://es5.github.io/#x8.5)
|
||||
* for more details.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -4209,7 +4213,7 @@
|
||||
|
||||
/**
|
||||
* Creates an array of shuffled values, using a version of the Fisher-Yates
|
||||
* shuffle. See http://en.wikipedia.org/wiki/Fisher-Yates_shuffle.
|
||||
* shuffle. See [Wikipedia](http://en.wikipedia.org/wiki/Fisher-Yates_shuffle) for more details.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -5391,7 +5395,7 @@
|
||||
|
||||
/**
|
||||
* Creates an array that is the symmetric difference of the provided arrays.
|
||||
* See http://en.wikipedia.org/wiki/Symmetric_difference.
|
||||
* See [Wikipedia](http://en.wikipedia.org/wiki/Symmetric_difference) for more details.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -5596,7 +5600,8 @@
|
||||
* 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.
|
||||
* See [Peter Michaux's article](http://michaux.ca/articles/lazy-function-definition-pattern)
|
||||
* for more details.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -6376,7 +6381,8 @@
|
||||
* `value` is a hexadecimal, in which case a `radix` of `16` is used.
|
||||
*
|
||||
* Note: This method avoids differences in native ES3 and ES5 `parseInt`
|
||||
* implementations. See http://es5.github.io/#E.
|
||||
* implementations. See the [ES5 spec](http://es5.github.io/#E)
|
||||
* for more details.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -6521,13 +6527,13 @@
|
||||
* whitespace, and correctly escapes quotes within interpolated code.
|
||||
*
|
||||
* Note: In the development build, `_.template` utilizes sourceURLs for easier
|
||||
* debugging. See http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl
|
||||
* debugging. See [HTML5 Rocks' article on sourcemaps](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl).
|
||||
*
|
||||
* For more information on precompiling templates see:
|
||||
* http://lodash.com/custom-builds
|
||||
* For more information on precompiling templates see
|
||||
* [Lo-Dash's custom builds documentation](http://lodash.com/custom-builds).
|
||||
*
|
||||
* For more information on Chrome extension sandboxes see:
|
||||
* http://developer.chrome.com/stable/extensions/sandboxingEval.html
|
||||
* For more information on Chrome extension sandboxes see
|
||||
* [Chrome's extensions documentation](http://developer.chrome.com/stable/extensions/sandboxingEval.html).
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
|
||||
2
dist/lodash.compat.min.js
vendored
2
dist/lodash.compat.min.js
vendored
@@ -28,7 +28,7 @@ for(var u=n.length;++r<u&&!(e=t(n[r],r,n)););}else rt(n,function(n,r,u){return!(
|
||||
for(t=v.createCallback(t,r,3);++u<o&&t(n[u],u,n);)e++}else e=null==t||r?1:$r(0,t);return s(n,e)}function Mt(n,t,r,e){var u=0,o=n?n.length:u;for(r=r?v.createCallback(r,e,1):Qt,t=r(t);u<o;)e=u+o>>>1,r(n[e])<t?u=e+1:o=e;return u}function Vt(n,t,r,e){return typeof t!="boolean"&&null!=t&&(e=r,r=typeof t!="function"&&e&&e[t]===n?null:t,t=false),null!=r&&(r=v.createCallback(r,e,3)),it(n,t,r)}function Ut(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,r=n?$t(re(n,"length")):0,e=tr(0>r?0:r);++t<r;)e[t]=re(n,t);
|
||||
return e}function Gt(n,t){var r=-1,e=n?n.length:0,u={};for(t||!e||Mr(n[0])||(t=[]);++r<e;){var o=n[r];t?u[o]=t[r]:o&&(u[o[0]]=o[1])}return u}function Ht(n,t){return 2<arguments.length?lt(n,17,s(arguments,2),null,t):lt(n,1,null,null,t)}function Jt(n,t,r){var e,u,o,a,i,f,l,c=0,p=false,s=true;if(!Ct(n))throw new cr;if(t=$r(0,t)||0,true===r)var g=true,s=false;else kt(r)&&(g=r.leading,p="maxWait"in r&&($r(t,r.maxWait)||0),s="trailing"in r?r.trailing:s);var v=function(){var r=t-(ee()-a);0<r?f=Er(v,r):(u&&_r(u),r=l,u=f=l=h,r&&(c=ee(),o=n.apply(i,e),f||u||(e=i=null)))
|
||||
},y=function(){f&&_r(f),u=f=l=h,(s||p!==t)&&(c=ee(),o=n.apply(i,e),f||u||(e=i=null))};return function(){if(e=arguments,a=ee(),i=this,l=s&&(f||!g),false===p)var r=g&&!f;else{u||g||(c=a);var h=p-(a-c),m=0>=h;m?(u&&(u=_r(u)),c=a,o=n.apply(i,e)):u||(u=Er(y,h))}return m&&f?f=_r(f):f||t===p||(f=Er(v,t)),r&&(m=true,o=n.apply(i,e)),!m||f||u||(e=i=null),o}}function Qt(n){return n}function Xt(n,t,r){var e=true,u=t&&wt(t);t&&(r||u.length)||(null==r&&(r=t),o=y,t=n,n=v,u=wt(t)),false===r?e=false:kt(r)&&"chain"in r&&(e=r.chain);
|
||||
var o=n,a=Ct(o);Pt(u,function(r){var u=n[r]=t[r];a&&(o.prototype[r]=function(){var t=this.__chain__,r=this.__wrapped__,a=[r];if(kr.apply(a,arguments),a=u.apply(n,a),e||t){if(r===a&&kt(a))return this;a=new o(a),a.__chain__=t}return a})})}function Yt(){}function Zt(n){return function(t){return t[n]}}function nr(){return this.__wrapped__}r=r?tt.defaults(Q.Object(),r,tt.pick(Q,P)):Q;var tr=r.Array,rr=r.Boolean,er=r.Date,ur=r.Function,or=r.Math,ar=r.Number,ir=r.Object,fr=r.RegExp,lr=r.String,cr=r.TypeError,pr=[],sr=r.Error.prototype,gr=ir.prototype,hr=lr.prototype,vr=r.window&&r.window.document,yr=r._,mr=gr.toString,dr=fr("^"+lr(mr).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),br=or.ceil,_r=r.clearTimeout,wr=or.floor,jr=ur.prototype.toString,xr=gt(xr=ir.getPrototypeOf)&&xr,Cr=gr.hasOwnProperty,kr=pr.push,Or=gr.propertyIsEnumerable,Er=r.setTimeout,Sr=pr.splice,Ir=pr.unshift,Ar=function(){try{var n={},t=gt(t=ir.defineProperty)&&t,r=t(n,n,n)&&t
|
||||
var o=n,a=Ct(o);Pt(u,function(r){var u=n[r]=t[r];a&&(o.prototype[r]=function(){var t=this.__chain__,r=this.__wrapped__,a=[r];if(kr.apply(a,arguments),a=u.apply(n,a),e||t){if(r===a&&kt(a))return this;a=new o(a),a.__chain__=t}return a})})}function Yt(){}function Zt(n){return function(t){return t[n]}}function nr(){return this.__wrapped__}r=r?tt.defaults(Q.Object(),r,tt.pick(Q,P)):Q;var tr=r.Array,rr=r.Boolean,er=r.Date,ur=r.Function,or=r.Math,ar=r.Number,ir=r.Object,fr=r.RegExp,lr=r.String,cr=r.TypeError,pr=[],sr=r.Error.prototype,gr=ir.prototype,hr=lr.prototype,vr=(vr=r.window)&&vr.document,yr=r._,mr=gr.toString,dr=fr("^"+lr(mr).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),br=or.ceil,_r=r.clearTimeout,wr=or.floor,jr=ur.prototype.toString,xr=gt(xr=ir.getPrototypeOf)&&xr,Cr=gr.hasOwnProperty,kr=pr.push,Or=gr.propertyIsEnumerable,Er=r.setTimeout,Sr=pr.splice,Ir=pr.unshift,Ar=function(){try{var n={},t=gt(t=ir.defineProperty)&&t,r=t(n,n,n)&&t
|
||||
}catch(e){}return r}(),Nr=gt(Nr=ir.create)&&Nr,Rr=gt(Rr=tr.isArray)&&Rr,Pr=r.isFinite,Tr=r.isNaN,Dr=gt(Dr=ir.keys)&&Dr,$r=or.max,Fr=or.min,qr=r.parseInt,Br=or.random,Lr={};Lr[$]=tr,Lr[F]=rr,Lr[q]=er,Lr[L]=ur,Lr[z]=ir,Lr[W]=ar,Lr[K]=fr,Lr[M]=lr;var Wr={};Wr[$]=Wr[q]=Wr[W]={constructor:true,toLocaleString:true,toString:true,valueOf:true},Wr[F]=Wr[M]={constructor:true,toString:true,valueOf:true},Wr[B]=Wr[L]=Wr[K]={constructor:true,toString:true},Wr[z]={constructor:true},function(){for(var n=T.length;n--;){var t,r=T[n];
|
||||
for(t in Wr)Cr.call(Wr,t)&&!Cr.call(Wr[t],r)&&(Wr[t][r]=false)}}(),y.prototype=v.prototype;var zr=v.support={};!function(){var n=function(){this.x=1},t={0:1,length:1},e=[];n.prototype={valueOf:1,y:1};for(var u in new n)e.push(u);for(u in arguments);zr.argsClass=mr.call(arguments)==D,zr.argsObject=arguments.constructor==ir&&!(arguments instanceof tr),zr.dom=!!vr&&typeof vr=="object"&&dr.test(_r)&&dr.test(Er),zr.enumErrorProps=Or.call(sr,"message")||Or.call(sr,"name"),zr.enumPrototypes=Or.call(n,"prototype"),zr.funcDecomp=!gt(r.WinRTError)&&N.test(g),zr.funcNames=typeof ur.name=="string",zr.nonEnumArgs=0!=u,zr.nonEnumShadows=!/valueOf/.test(e),zr.ownLast="x"!=e[0],zr.spliceObjects=(pr.splice.call(t,0,1),!t[0]),zr.unindexedChars="xx"!="x"[0]+ir("x")[0];
|
||||
try{zr.nodeClass=!(mr.call(undefined)==z&&!({toString:0}+""))}catch(o){zr.nodeClass=true}}(1),v.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:S,variable:"",imports:{_:v}},Nr||(X=function(){function n(){}return function(t){if(kt(t)){n.prototype=t;var e=new n;n.prototype=null}return e||r.Object()}}());var Kr=Ar?function(n,t){G.value=t,Ar(n,"__bindData__",G)}:Yt;zr.argsClass||(yt=function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Cr.call(n,"callee")&&!Or.call(n,"callee")||false});var Mr=Rr||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&mr.call(n)==$||false
|
||||
|
||||
34
dist/lodash.js
vendored
34
dist/lodash.js
vendored
@@ -460,7 +460,7 @@
|
||||
var objectProto = Object.prototype;
|
||||
|
||||
/** Used to detect DOM support */
|
||||
var document = context.window && context.window.document;
|
||||
var document = (document = context.window) && document.document;
|
||||
|
||||
/** Used to restore the original `_` reference in `noConflict` */
|
||||
var oldDash = context._;
|
||||
@@ -1772,7 +1772,8 @@
|
||||
* Note: This method is loosely based on the structured clone algorithm. Functions
|
||||
* and DOM nodes are **not** cloned. The enumerable properties of `arguments` objects and
|
||||
* objects created by constructors other than `Object` are cloned to plain `Object` objects.
|
||||
* See http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm.
|
||||
* See the [HTML5 specification](http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm)
|
||||
* for more details.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -2382,7 +2383,8 @@
|
||||
* Checks if `value` is, or can be coerced to, a finite number.
|
||||
*
|
||||
* Note: This is not the same as native `isFinite` which will return true for
|
||||
* booleans and empty strings. See http://es5.github.io/#x15.1.2.5.
|
||||
* booleans and empty strings. See the [ES5 spec](http://es5.github.io/#x15.1.2.5)
|
||||
* for more details.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -2459,7 +2461,8 @@
|
||||
* Checks if `value` is `NaN`.
|
||||
*
|
||||
* Note: This is not the same as native `isNaN` which will return `true` for
|
||||
* `undefined` and other non-numeric values. See http://es5.github.io/#x15.1.2.4.
|
||||
* `undefined` and other non-numeric values. See the [ES5 spec](http://es5.github.io/#x15.1.2.4)
|
||||
* for more details.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -2509,7 +2512,8 @@
|
||||
/**
|
||||
* Checks if `value` is a number.
|
||||
*
|
||||
* Note: `NaN` is considered a number. See http://es5.github.io/#x8.5.
|
||||
* Note: `NaN` is considered a number. See the [ES5 spec](http://es5.github.io/#x8.5)
|
||||
* for more details.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -3887,7 +3891,7 @@
|
||||
|
||||
/**
|
||||
* Creates an array of shuffled values, using a version of the Fisher-Yates
|
||||
* shuffle. See http://en.wikipedia.org/wiki/Fisher-Yates_shuffle.
|
||||
* shuffle. See [Wikipedia](http://en.wikipedia.org/wiki/Fisher-Yates_shuffle) for more details.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -5067,7 +5071,7 @@
|
||||
|
||||
/**
|
||||
* Creates an array that is the symmetric difference of the provided arrays.
|
||||
* See http://en.wikipedia.org/wiki/Symmetric_difference.
|
||||
* See [Wikipedia](http://en.wikipedia.org/wiki/Symmetric_difference) for more details.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -5272,7 +5276,8 @@
|
||||
* 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.
|
||||
* See [Peter Michaux's article](http://michaux.ca/articles/lazy-function-definition-pattern)
|
||||
* for more details.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -6052,7 +6057,8 @@
|
||||
* `value` is a hexadecimal, in which case a `radix` of `16` is used.
|
||||
*
|
||||
* Note: This method avoids differences in native ES3 and ES5 `parseInt`
|
||||
* implementations. See http://es5.github.io/#E.
|
||||
* implementations. See the [ES5 spec](http://es5.github.io/#E)
|
||||
* for more details.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -6197,13 +6203,13 @@
|
||||
* whitespace, and correctly escapes quotes within interpolated code.
|
||||
*
|
||||
* Note: In the development build, `_.template` utilizes sourceURLs for easier
|
||||
* debugging. See http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl
|
||||
* debugging. See [HTML5 Rocks' article on sourcemaps](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl).
|
||||
*
|
||||
* For more information on precompiling templates see:
|
||||
* http://lodash.com/custom-builds
|
||||
* For more information on precompiling templates see
|
||||
* [Lo-Dash's custom builds documentation](http://lodash.com/custom-builds).
|
||||
*
|
||||
* For more information on Chrome extension sandboxes see:
|
||||
* http://developer.chrome.com/stable/extensions/sandboxingEval.html
|
||||
* For more information on Chrome extension sandboxes see
|
||||
* [Chrome's extensions documentation](http://developer.chrome.com/stable/extensions/sandboxingEval.html).
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
|
||||
2
dist/lodash.min.js
vendored
2
dist/lodash.min.js
vendored
@@ -26,7 +26,7 @@ for(var i=n.length;++e<i;){var a=n[e];a>o&&(o=a)}}else t=null==t&&xt(n)?r:d.crea
|
||||
}function qt(t,e,r){if(typeof r=="number"){var u=t?t.length:0;r=0>r?Re(0,u+r):r||0}else if(r)return r=Pt(t,e),t[r]===e?r:-1;return n(t,e,r)}function zt(n,t,e){if(typeof t!="number"&&null!=t){var r=0,u=-1,o=n?n.length:0;for(t=d.createCallback(t,e,3);++u<o&&t(n[u],u,n);)r++}else r=null==t||e?1:Re(0,t);return p(n,r)}function Pt(n,t,e,r){var u=0,o=n?n.length:u;for(e=e?d.createCallback(e,r,1):Gt,t=e(t);u<o;)r=u+o>>>1,e(n[r])<t?u=r+1:o=r;return u}function Kt(n,t,e,r){return typeof t!="boolean"&&null!=t&&(r=e,e=typeof t!="function"&&r&&r[t]===n?null:t,t=false),null!=e&&(e=d.createCallback(e,r,3)),ot(n,t,e)
|
||||
}function Lt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,e=n?At(Ge(n,"length")):0,r=Yt(0>e?0:e);++t<e;)r[t]=Ge(n,t);return r}function Mt(n,t){var e=-1,r=n?n.length:0,u={};for(t||!r||Be(n[0])||(t=[]);++e<r;){var o=n[e];t?u[o]=t[e]:o&&(u[o[0]]=o[1])}return u}function Vt(n,t){return 2<arguments.length?at(n,17,p(arguments,2),null,t):at(n,1,null,null,t)}function Ut(n,t,e){function r(){c&&ge(c),i=c=p=h,(g||v!==t)&&(s=He(),a=n.apply(l,o),c||i||(o=l=null))}function u(){var e=t-(He()-f);0<e?c=we(u,e):(i&&ge(i),e=p,i=c=p=h,e&&(s=He(),a=n.apply(l,o),c||i||(o=l=null)))
|
||||
}var o,i,a,f,l,c,p,s=0,v=false,g=true;if(!wt(n))throw new ae;if(t=Re(0,t)||0,true===e)var y=true,g=false;else jt(e)&&(y=e.leading,v="maxWait"in e&&(Re(t,e.maxWait)||0),g="trailing"in e?e.trailing:g);return function(){if(o=arguments,f=He(),l=this,p=g&&(c||!y),false===v)var e=y&&!c;else{i||y||(s=f);var h=v-(f-s),m=0>=h;m?(i&&(i=ge(i)),s=f,a=n.apply(l,o)):i||(i=we(r,h))}return m&&c?c=ge(c):c||t===v||(c=we(u,t)),e&&(m=true,a=n.apply(l,o)),!m||c||i||(o=l=null),a}}function Gt(n){return n}function Ht(n,t,e){var r=true,u=t&&bt(t);
|
||||
t&&(e||u.length)||(null==e&&(e=t),o=U,t=n,n=d,u=bt(t)),false===e?r=false:jt(e)&&"chain"in e&&(r=e.chain);var o=n,i=wt(o);Rt(u,function(e){var u=n[e]=t[e];i&&(o.prototype[e]=function(){var t=this.__chain__,e=this.__wrapped__,i=[e];if(_e.apply(i,arguments),i=u.apply(n,i),r||t){if(e===i&&jt(i))return this;i=new o(i),i.__chain__=t}return i})})}function Jt(){}function Qt(n){return function(t){return t[n]}}function Xt(){return this.__wrapped__}e=e?Y.defaults(G.Object(),e,Y.pick(G,T)):G;var Yt=e.Array,Zt=e.Boolean,ne=e.Date,te=e.Function,ee=e.Math,re=e.Number,ue=e.Object,oe=e.RegExp,ie=e.String,ae=e.TypeError,fe=[],le=ue.prototype,ce=e.window&&e.window.document,pe=e._,se=le.toString,he=oe("^"+ie(se).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),ve=ee.ceil,ge=e.clearTimeout,ye=ee.floor,me=te.prototype.toString,be=ct(be=ue.getPrototypeOf)&&be,de=le.hasOwnProperty,_e=fe.push,we=e.setTimeout,je=fe.splice,ke=fe.unshift,xe=function(){try{var n={},t=ct(t=ue.defineProperty)&&t,e=t(n,n,n)&&t
|
||||
t&&(e||u.length)||(null==e&&(e=t),o=U,t=n,n=d,u=bt(t)),false===e?r=false:jt(e)&&"chain"in e&&(r=e.chain);var o=n,i=wt(o);Rt(u,function(e){var u=n[e]=t[e];i&&(o.prototype[e]=function(){var t=this.__chain__,e=this.__wrapped__,i=[e];if(_e.apply(i,arguments),i=u.apply(n,i),r||t){if(e===i&&jt(i))return this;i=new o(i),i.__chain__=t}return i})})}function Jt(){}function Qt(n){return function(t){return t[n]}}function Xt(){return this.__wrapped__}e=e?Y.defaults(G.Object(),e,Y.pick(G,T)):G;var Yt=e.Array,Zt=e.Boolean,ne=e.Date,te=e.Function,ee=e.Math,re=e.Number,ue=e.Object,oe=e.RegExp,ie=e.String,ae=e.TypeError,fe=[],le=ue.prototype,ce=(ce=e.window)&&ce.document,pe=e._,se=le.toString,he=oe("^"+ie(se).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),ve=ee.ceil,ge=e.clearTimeout,ye=ee.floor,me=te.prototype.toString,be=ct(be=ue.getPrototypeOf)&&be,de=le.hasOwnProperty,_e=fe.push,we=e.setTimeout,je=fe.splice,ke=fe.unshift,xe=function(){try{var n={},t=ct(t=ue.defineProperty)&&t,e=t(n,n,n)&&t
|
||||
}catch(r){}return e}(),Ce=ct(Ce=ue.create)&&Ce,Oe=ct(Oe=Yt.isArray)&&Oe,Ee=e.isFinite,Ne=e.isNaN,Ie=ct(Ie=ue.keys)&&Ie,Re=ee.max,Se=ee.min,Te=e.parseInt,Ae=ee.random,De={};De[D]=Yt,De[$]=Zt,De[F]=ne,De[B]=te,De[q]=ue,De[W]=re,De[z]=oe,De[P]=ie,U.prototype=d.prototype;var $e=d.support={};$e.dom=!!ce&&typeof ce=="object"&&he.test(ge)&&he.test(we),$e.funcDecomp=!ct(e.WinRTError)&&R.test(s),$e.funcNames=typeof te.name=="string",d.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:E,variable:"",imports:{_:d}},Ce||(Q=function(){function n(){}return function(t){if(jt(t)){n.prototype=t;
|
||||
var r=new n;n.prototype=null}return r||e.Object()}}());var Fe=xe?function(n,t){M.value=t,xe(n,"__bindData__",M)}:Jt,Be=Oe||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&se.call(n)==D||false},We=Ie?function(n){return jt(n)?Ie(n):[]}:g,qe={"&":"&","<":"<",">":">",'"':""","'":"'"},ze=dt(qe),Pe=oe("("+We(ze).join("|")+")","g"),Ke=oe("["+We(qe).join("")+"]","g");$e.dom||(_t=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!Le(n)||false});var Le=be?function(n){if(!n||se.call(n)!=q)return false;
|
||||
var t=n.valueOf,e=ct(t)&&(e=be(t))&&be(e);return e?n==e||be(n)==e:pt(n)}:pt,Me=it(function(n,t,e){de.call(n,e)?n[e]++:n[e]=1}),Ve=it(function(n,t,e){(de.call(n,e)?n[e]:n[e]=[]).push(t)}),Ue=it(function(n,t,e){n[e]=t}),Ge=Tt,He=ct(He=ne.now)&&He||function(){return(new ne).getTime()},Je=8==Te(_+"08")?Te:function(n,t){return Te(xt(n)?n.replace(N,""):n,t||0)};return d.after=function(n,t){if(!wt(t))throw new ae;return function(){return 1>--n?t.apply(this,arguments):void 0}},d.assign=vt,d.at=function(n){for(var t=arguments,e=-1,r=tt(t,true,false,1),t=t[2]&&t[2][t[1]]===n?1:r.length,u=Yt(t);++e<t;)u[e]=n[r[e]];
|
||||
|
||||
21
dist/lodash.underscore.js
vendored
21
dist/lodash.underscore.js
vendored
@@ -1431,7 +1431,8 @@
|
||||
* Checks if `value` is, or can be coerced to, a finite number.
|
||||
*
|
||||
* Note: This is not the same as native `isFinite` which will return true for
|
||||
* booleans and empty strings. See http://es5.github.io/#x15.1.2.5.
|
||||
* booleans and empty strings. See the [ES5 spec](http://es5.github.io/#x15.1.2.5)
|
||||
* for more details.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -1514,7 +1515,8 @@
|
||||
* Checks if `value` is `NaN`.
|
||||
*
|
||||
* Note: This is not the same as native `isNaN` which will return `true` for
|
||||
* `undefined` and other non-numeric values. See http://es5.github.io/#x15.1.2.4.
|
||||
* `undefined` and other non-numeric values. See the [ES5 spec](http://es5.github.io/#x15.1.2.4)
|
||||
* for more details.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -1564,7 +1566,8 @@
|
||||
/**
|
||||
* Checks if `value` is a number.
|
||||
*
|
||||
* Note: `NaN` is considered a number. See http://es5.github.io/#x8.5.
|
||||
* Note: `NaN` is considered a number. See the [ES5 spec](http://es5.github.io/#x8.5)
|
||||
* for more details.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -2656,7 +2659,7 @@
|
||||
|
||||
/**
|
||||
* Creates an array of shuffled values, using a version of the Fisher-Yates
|
||||
* shuffle. See http://en.wikipedia.org/wiki/Fisher-Yates_shuffle.
|
||||
* shuffle. See [Wikipedia](http://en.wikipedia.org/wiki/Fisher-Yates_shuffle) for more details.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -4501,13 +4504,13 @@
|
||||
* whitespace, and correctly escapes quotes within interpolated code.
|
||||
*
|
||||
* Note: In the development build, `_.template` utilizes sourceURLs for easier
|
||||
* debugging. See http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl
|
||||
* debugging. See [HTML5 Rocks' article on sourcemaps](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl).
|
||||
*
|
||||
* For more information on precompiling templates see:
|
||||
* http://lodash.com/custom-builds
|
||||
* For more information on precompiling templates see
|
||||
* [Lo-Dash's custom builds documentation](http://lodash.com/custom-builds).
|
||||
*
|
||||
* For more information on Chrome extension sandboxes see:
|
||||
* http://developer.chrome.com/stable/extensions/sandboxingEval.html
|
||||
* For more information on Chrome extension sandboxes see
|
||||
* [Chrome's extensions documentation](http://developer.chrome.com/stable/extensions/sandboxingEval.html).
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
|
||||
Reference in New Issue
Block a user