mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Ensure _.where deep compares properties values.
Former-commit-id: f3f29abf024f87a947fef6df1e3db9d9d1de99bf
This commit is contained in:
2
lodash.underscore.min.js
vendored
2
lodash.underscore.min.js
vendored
@@ -5,7 +5,7 @@
|
||||
* Underscore.js 1.4.3 underscorejs.org/LICENSE
|
||||
*/
|
||||
;(function(n,t){function r(n,t){var r;if(n)for(r in t||(t=P),n)if(t(n[r],r,n)===W)break}function e(n,t,r){if(n){t=t&&typeof r=="undefined"?t:i(t,r);var e=n.length;if(r=-1,typeof e=="number")for(;++r<e&&t(n[r],r,n)!==W;);else for(r in n)if(it.call(n,r)&&t(n[r],r,n)===W)break}}function u(n){return n&&typeof n=="object"&&n.__wrapped__?n:this instanceof u?(this.__wrapped__=n,void 0):new u(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(n<t||typeof t=="undefined")return-1
|
||||
}return r<e?-1:1}function i(n,t,r){if(!n)return P;var e=typeof n;if("function"!=e){if("object"!=e)return function(t){return t[n]};var u=kt(n);return function(t){for(var r=u.length,e=H;r--&&(e=t[u[r]]===n[u[r]]););return e}}return typeof t!="undefined"?r?function(r,e,u,o){return n.call(t,r,e,u,o)}:function(r,e,u){return n.call(t,r,e,u)}:n}function a(n){return"\\"+Nt[n]}function f(n){return Ft[n]}function c(){}function l(n,t,r){t||(t=0),typeof r=="undefined"&&(r=n?n.length:0);var e=-1;r=r-t||0;for(var u=Array(0>r?0:r);++e<r;)u[e]=n[t+e];
|
||||
}return r<e?-1:1}function i(n,t,r){if(!n)return P;var e=typeof n;if("function"!=e){if("object"!=e)return function(t){return t[n]};var u=kt(n);return function(t){for(var r=u.length,e=H;r--&&(e=_(t[u[r]],n[u[r]])););return e}}return typeof t!="undefined"?r?function(r,e,u,o){return n.call(t,r,e,u,o)}:function(r,e,u){return n.call(t,r,e,u)}:n}function a(n){return"\\"+Nt[n]}function f(n){return Ft[n]}function c(){}function l(n,t,r){t||(t=0),typeof r=="undefined"&&(r=n?n.length:0);var e=-1;r=r-t||0;for(var u=Array(0>r?0:r);++e<r;)u[e]=n[t+e];
|
||||
return u}function s(n){return Rt[n]}function p(n){var t,r=[],e=function(n,t){r.push(t)};if(n)for(t in e||(e=P),n)if(it.call(n,t)&&e(n[t],t,n)===W)break;return r}function v(n){if(!n)return n;for(var t=1,r=arguments.length;t<r;t++){var e=arguments[t];if(e)for(var u in e)n[u]=e[u]}return n}function g(n){if(!n)return n;for(var t=1,r=arguments.length;t<r;t++){var e=arguments[t];if(e)for(var u in e)n[u]==G&&(n[u]=e[u])}return n}function h(n){var t=[];return r(n,function(n,r){m(n)&&t.push(r)}),t.sort()}function y(n){for(var t=-1,r=kt(n),e=r.length,u={};++t<e;){var o=r[t];
|
||||
u[n[o]]=o}return u}function _(n,t,e,u){if(n===t)return 0!==n||1/n==1/t;if(n==G||t==G)return n===t;var o=ft.call(n),i=ft.call(t);if(o!=i)return H;switch(o){case mt:case dt:return+n==+t;case bt:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case wt:case At:return n==t+""}if(i=o==_t,!i){if(n.__wrapped__||t.__wrapped__)return _(n.__wrapped__||n,t.__wrapped__||t);if(o!=jt)return H;var o=n.constructor,a=t.constructor;if(o!=a&&(!m(o)||!(o instanceof o&&m(a)&&a instanceof a)))return H}for(e||(e=[]),u||(u=[]),o=e.length;o--;)if(e[o]==n)return u[o]==t;
|
||||
var f=V,c=0;if(e.push(n),u.push(t),i){if(c=n.length,f=c==t.length)for(;c--&&(f=_(n[c],t[c],e,u)););return f}return r(n,function(n,r,o){return it.call(o,r)?(c++,!(f=it.call(t,r)&&_(n,t[r],e,u))&&W):void 0}),f&&r(t,function(n,t,r){return it.call(r,t)?!(f=-1<--c)&&W:void 0}),f}function m(n){return typeof n=="function"}function d(n){return n?St[typeof n]:H}function b(n){return typeof n=="number"||ft.call(n)==bt}function j(n){return typeof n=="string"||ft.call(n)==At}function w(n){for(var t=-1,r=kt(n),e=r.length,u=Array(e);++t<e;)u[t]=n[r[t]];
|
||||
|
||||
Reference in New Issue
Block a user