mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-14 12:47:49 +00:00
Rebuild docs and files.
Former-commit-id: 3f0dd7d8a07e2a3694619ce7277573ffb6f88ef6
This commit is contained in:
8
dist/lodash.min.js
vendored
8
dist/lodash.min.js
vendored
@@ -9,10 +9,10 @@ if(!u)return a;for(var o=arguments,i=0,f=typeof e=="number"?2:o.length;++i<f;)if
|
||||
return a}function V(n){var t,e=[];if(!n||!q[typeof n])return e;for(t in n)ee.call(n,t)&&e.push(t);return e}function G(n){return n&&typeof n=="object"&&!_e(n)&&ee.call(n,"__wrapped__")?n:new Z(n)}function H(n,t,e){e=(e||0)-1;for(var r=n.length;++e<r;)if(n[e]===t)return e;return-1}function J(n){return n.charCodeAt(0)}function L(n,t){var e=n.b,r=t.b;if(n=n.a,t=t.a,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return e<r?-1:1}function Q(n,t,e,r){function u(){var r=arguments,c=o?this:t;
|
||||
return a||(n=t[i]),e.length&&(r=r.length?(r=be.call(r),f?r.concat(e):e.concat(r)):e),this instanceof u?(c=ct(n.prototype)?fe(n.prototype):{},r=n.apply(c,r),ct(r)?r:c):n.apply(c,r)}var a=ft(n),o=!e,i=t;if(o){var f=r;e=t}else if(!a){if(!r)throw new Gt;t=n}return u}function W(n){function t(t){return-1<H(n,t)}function e(t){n.push(t)}function o(n){var t=typeof n;if("boolean"==t||n==u)return y[n];var e=y[t]||(t="object",g),r="number"==t?n:p+n;return"object"==t?e[r]?-1<H(e[r],n):a:!!e[r]}function i(n){var t=typeof n;
|
||||
if("boolean"==t||n==u)y[n]=r;else{var e=y[t]||(t="object",g),a="number"==t?n:p+n;"object"==t?f=(e[a]||(e[a]=[])).push(n)==l:e[a]=r}}n||(n=[]);var f,c=-1,l=n.length,v=l>=s,g={},y={"false":a,"function":a,"null":a,number:{},object:g,string:{},"true":a,undefined:a};if(v){for(;++c<l;)i(n[c]);f&&(v=y=g=u)}return v?{contains:o,push:i}:{contains:t,push:e}}function X(n){return je[n]}function Y(n){return"\\"+D[n]}function Z(n){this.__wrapped__=n}function nt(n){return function(t,r,o,i){return typeof r!="boolean"&&r!=u&&(i=o,o=i&&i[r]===t?e:r,r=a),o!=u&&(o=G.createCallback(o,i)),n(t,r,o,i)
|
||||
}}function tt(n){var t=a;if(!n||oe.call(n)!=B)return t;var e=n.constructor;return(ft(e)?e instanceof e:1)?(K(n,function(n,e){t=e}),t===a||ee.call(n,t)):t}function et(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);var r=-1;e=e-t||0;for(var u=Tt(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function rt(n){return we[n]}function ut(n,t,r,o,i,f){var c=n;if(typeof t!="boolean"&&t!=u&&(o=r,r=t,t=a),typeof r=="function"){if(r=typeof o=="undefined"?r:G.createCallback(r,o,1),c=r(c),typeof c!="undefined")return c;
|
||||
c=n}if(o=ct(c)){var l=oe.call(c);if(!T[l])return c;var p=_e(c)}if(!o||!t)return o?p?et(c):U({},c):c;switch(o=me[l],l){case I:case N:return new o(+c);case $:case R:return new o(c);case F:return o(c.source,m.exec(c))}for(i||(i=[]),f||(f=[]),l=i.length;l--;)if(i[l]==n)return f[l];return c=p?o(c.length):{},p&&(ee.call(n,"index")&&(c.index=n.index),ee.call(n,"input")&&(c.input=n.input)),i.push(n),f.push(c),(p?mt:P)(n,function(n,u){c[u]=ut(n,t,r,e,i,f)}),c}function at(n){var t=[];return K(n,function(n,e){ft(n)&&t.push(e)
|
||||
}),t.sort()}function ot(n){for(var t=-1,e=ke(n),r=e.length,u={};++t<r;){var a=e[t];u[n[a]]=a}return u}function it(n,t,e,o,i,f){var c=e===l;if(typeof e=="function"&&!c){e=G.createCallback(e,o,2);var p=e(n,t);if(typeof p!="undefined")return!!p}if(n===t)return 0!==n||1/n==1/t;var s=typeof n,v=typeof t;if(n===n&&(!n||"function"!=s&&"object"!=s)&&(!t||"function"!=v&&"object"!=v))return a;if(n==u||t==u)return n===t;if(v=oe.call(n),s=oe.call(t),v==E&&(v=B),s==E&&(s=B),v!=s)return a;switch(v){case I:case N:return+n==+t;
|
||||
case $:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case F:case R:return n==Vt(t)}if(s=v==S,!s){if(ee.call(n,"__wrapped__")||ee.call(t,"__wrapped__"))return it(n.__wrapped__||n,t.__wrapped__||t,e,o,i,f);if(v!=B)return a;var v=n.constructor,g=t.constructor;if(v!=g&&(!ft(v)||!(v instanceof v&&ft(g)&&g instanceof g)))return a}for(i||(i=[]),f||(f=[]),v=i.length;v--;)if(i[v]==n)return f[v]==t;var y=0,p=r;if(i.push(n),f.push(t),s){if(v=n.length,y=t.length,p=y==n.length,!p&&!c)return p;for(;y--;)if(s=v,g=t[y],c)for(;s--&&!(p=it(n[s],g,e,o,i,f)););else if(!(p=it(n[y],g,e,o,i,f)))break;
|
||||
}}function tt(n){var t,r;return n&&oe.call(n)==B&&(t=n.constructor,!ft(t)||t instanceof t)?(K(n,function(n,t){r=t}),r===e||ee.call(n,r)):a}function et(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);var r=-1;e=e-t||0;for(var u=Tt(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function rt(n){return we[n]}function ut(n,t,r,o,i,f){var c=n;if(typeof t!="boolean"&&t!=u&&(o=r,r=t,t=a),typeof r=="function"){if(r=typeof o=="undefined"?r:G.createCallback(r,o,1),c=r(c),typeof c!="undefined")return c;c=n}if(o=ct(c)){var l=oe.call(c);
|
||||
if(!T[l])return c;var p=_e(c)}if(!o||!t)return o?p?et(c):U({},c):c;switch(o=me[l],l){case I:case N:return new o(+c);case $:case R:return new o(c);case F:return o(c.source,m.exec(c))}for(i||(i=[]),f||(f=[]),l=i.length;l--;)if(i[l]==n)return f[l];return c=p?o(c.length):{},p&&(ee.call(n,"index")&&(c.index=n.index),ee.call(n,"input")&&(c.input=n.input)),i.push(n),f.push(c),(p?mt:P)(n,function(n,u){c[u]=ut(n,t,r,e,i,f)}),c}function at(n){var t=[];return K(n,function(n,e){ft(n)&&t.push(e)}),t.sort()}function ot(n){for(var t=-1,e=ke(n),r=e.length,u={};++t<r;){var a=e[t];
|
||||
u[n[a]]=a}return u}function it(n,t,e,o,i,f){var c=e===l;if(typeof e=="function"&&!c){e=G.createCallback(e,o,2);var p=e(n,t);if(typeof p!="undefined")return!!p}if(n===t)return 0!==n||1/n==1/t;var s=typeof n,v=typeof t;if(n===n&&(!n||"function"!=s&&"object"!=s)&&(!t||"function"!=v&&"object"!=v))return a;if(n==u||t==u)return n===t;if(v=oe.call(n),s=oe.call(t),v==E&&(v=B),s==E&&(s=B),v!=s)return a;switch(v){case I:case N:return+n==+t;case $:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case F:case R:return n==Vt(t)
|
||||
}if(s=v==S,!s){if(ee.call(n,"__wrapped__")||ee.call(t,"__wrapped__"))return it(n.__wrapped__||n,t.__wrapped__||t,e,o,i,f);if(v!=B)return a;var v=n.constructor,g=t.constructor;if(v!=g&&(!ft(v)||!(v instanceof v&&ft(g)&&g instanceof g)))return a}for(i||(i=[]),f||(f=[]),v=i.length;v--;)if(i[v]==n)return f[v]==t;var y=0,p=r;if(i.push(n),f.push(t),s){if(v=n.length,y=t.length,p=y==n.length,!p&&!c)return p;for(;y--;)if(s=v,g=t[y],c)for(;s--&&!(p=it(n[s],g,e,o,i,f)););else if(!(p=it(n[y],g,e,o,i,f)))break;
|
||||
return p}return K(t,function(t,r,u){return ee.call(u,r)?(y++,p=ee.call(n,r)&&it(n[r],t,e,o,i,f)):void 0}),p&&!c&&K(n,function(n,t,e){return ee.call(e,t)?p=-1<--y:void 0}),p}function ft(n){return typeof n=="function"}function ct(n){return!(!n||!q[typeof n])}function lt(n){return typeof n=="number"||oe.call(n)==$}function pt(n){return typeof n=="string"||oe.call(n)==R}function st(n,t,e){var r=arguments,u=0,a=2;if(!ct(n))return n;if(e===l)var o=r[3],i=r[4],c=r[5];else i=[],c=[],typeof e!="number"&&(a=r.length),3<a&&"function"==typeof r[a-2]?o=G.createCallback(r[--a-1],r[a--],2):2<a&&"function"==typeof r[a-1]&&(o=r[--a]);
|
||||
for(;++u<a;)(_e(r[u])?mt:P)(r[u],function(t,e){var r,u,a=t,p=n[e];if(t&&((u=_e(t))||f(t))){for(a=i.length;a--;)if(r=i[a]==t){p=c[a];break}if(!r){var s;o&&(a=o(p,t),s=typeof a!="undefined")&&(p=a),s||(p=u?_e(p)?p:[]:f(p)?p:{}),i.push(t),c.push(p),s||(p=st(p,t,l,o,i,c))}}else o&&(a=o(p,t),typeof a=="undefined"&&(a=t)),typeof a!="undefined"&&(p=a);n[e]=p});return n}function vt(n){for(var t=-1,e=ke(n),r=e.length,u=Tt(r);++t<r;)u[t]=n[e[t]];return u}function gt(n,t,e){var r=-1,u=n?n.length:0,o=a;return e=(0>e?ve(0,u+e):e)||0,u&&typeof u=="number"?o=-1<(pt(n)?n.indexOf(t,e):H(n,t,e)):P(n,function(n){return++r<e?void 0:!(o=n===t)
|
||||
}),o}function yt(n,t,e){var u=r;t=G.createCallback(t,e),e=-1;var a=n?n.length:0;if(typeof a=="number")for(;++e<a&&(u=!!t(n[e],e,n)););else P(n,function(n,e,r){return u=!!t(n,e,r)});return u}function ht(n,t,e){var r=[];t=G.createCallback(t,e),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u;){var a=n[e];t(a,e,n)&&r.push(a)}else P(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function bt(n,t,e){t=G.createCallback(t,e),e=-1;var r=n?n.length:0;if(typeof r!="number"){var u;return P(n,function(n,e,r){return t(n,e,r)?(u=n,a):void 0
|
||||
|
||||
Reference in New Issue
Block a user