lodash: Update isNaN to pass IE unit test. [jddalton]

Former-commit-id: fba56af41dc05b325e809cbcfff8c5f626468cf0
This commit is contained in:
John-David Dalton
2012-04-22 21:50:14 -04:00
parent 48add6a486
commit faf9168851
3 changed files with 28 additions and 27 deletions

View File

@@ -139,7 +139,7 @@ The `lodash` function.
<!-- div --> <!-- div -->
### <a id="_.VERSION" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2564" title="View in source">`_.VERSION`</a> ### <a id="_.VERSION" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2565" title="View in source">`_.VERSION`</a>
*(String)*: The semantic version number. *(String)*: The semantic version number.
[&#9650;][1] [&#9650;][1]
@@ -226,7 +226,7 @@ jQuery('#lodash_button').on('click', buttonView.onClick);
<!-- div --> <!-- div -->
### <a id="_.chain" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2533" title="View in source">`_.chain()`</a> ### <a id="_.chain" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2534" title="View in source">`_.chain()`</a>
Extracts the value from a wrapped chainable object. Extracts the value from a wrapped chainable object.
[&#9650;][1] [&#9650;][1]
@@ -244,7 +244,7 @@ _([1, 2, 3]).value();
<!-- div --> <!-- div -->
### <a id="_.chain" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2517" title="View in source">`_.chain(value)`</a> ### <a id="_.chain" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2518" title="View in source">`_.chain(value)`</a>
Wraps the value in a `lodash` chainable object. Wraps the value in a `lodash` chainable object.
[&#9650;][1] [&#9650;][1]
@@ -477,7 +477,7 @@ _.difference([1, 2, 3, 4, 5], [5, 2, 10]);
<!-- div --> <!-- div -->
### <a id="_.escape" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2234" title="View in source">`_.escape(string)`</a> ### <a id="_.escape" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2235" title="View in source">`_.escape(string)`</a>
Escapes a string for insertion into HTML, replacing `&`, `<`, `>`, `"`, `'`, and `/` characters. Escapes a string for insertion into HTML, replacing `&`, `<`, `>`, `"`, `'`, and `/` characters.
[&#9650;][1] [&#9650;][1]
@@ -732,7 +732,7 @@ _.has({ 'a': 1, 'b': 2, 'c': 3 }, 'b');
<!-- div --> <!-- div -->
### <a id="_.identity" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2259" title="View in source">`_.identity(value)`</a> ### <a id="_.identity" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2260" title="View in source">`_.identity(value)`</a>
This function simply returns the first argument passed to it. Note: It is used throughout Lo-Dash as a default callback. This function simply returns the first argument passed to it. Note: It is used throughout Lo-Dash as a default callback.
[&#9650;][1] [&#9650;][1]
@@ -1086,7 +1086,7 @@ _.isNaN(undefined);
<!-- div --> <!-- div -->
### <a id="_.isNull" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2074" title="View in source">`_.isNull(value)`</a> ### <a id="_.isNull" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2075" title="View in source">`_.isNull(value)`</a>
Checks if a `value` is `null`. Checks if a `value` is `null`.
[&#9650;][1] [&#9650;][1]
@@ -1110,7 +1110,7 @@ _.isNull(undefined);
<!-- div --> <!-- div -->
### <a id="_.isNumber" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2091" title="View in source">`_.isNumber(value)`</a> ### <a id="_.isNumber" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2092" title="View in source">`_.isNumber(value)`</a>
Checks if a `value` is a number. Checks if a `value` is a number.
[&#9650;][1] [&#9650;][1]
@@ -1155,7 +1155,7 @@ _.isObject(1);
<!-- div --> <!-- div -->
### <a id="_.isRegExp" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2108" title="View in source">`_.isRegExp(value)`</a> ### <a id="_.isRegExp" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2109" title="View in source">`_.isRegExp(value)`</a>
Checks if a `value` is a regular expression. Checks if a `value` is a regular expression.
[&#9650;][1] [&#9650;][1]
@@ -1176,7 +1176,7 @@ _.isRegExp(/moe/);
<!-- div --> <!-- div -->
### <a id="_.isString" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2125" title="View in source">`_.isString(value)`</a> ### <a id="_.isString" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2126" title="View in source">`_.isString(value)`</a>
Checks if a `value` is a string. Checks if a `value` is a string.
[&#9650;][1] [&#9650;][1]
@@ -1197,7 +1197,7 @@ _.isString('moe');
<!-- div --> <!-- div -->
### <a id="_.isUndefined" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2142" title="View in source">`_.isUndefined(value)`</a> ### <a id="_.isUndefined" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2143" title="View in source">`_.isUndefined(value)`</a>
Checks if a `value` is `undefined`. Checks if a `value` is `undefined`.
[&#9650;][1] [&#9650;][1]
@@ -1218,7 +1218,7 @@ _.isUndefined(void 0);
<!-- div --> <!-- div -->
### <a id="_.keys" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2159" title="View in source">`_.keys(object)`</a> ### <a id="_.keys" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2160" title="View in source">`_.keys(object)`</a>
Produces an array of the `object`'s enumerable own property names. Produces an array of the `object`'s enumerable own property names.
[&#9650;][1] [&#9650;][1]
@@ -1385,7 +1385,7 @@ _.min([10, 5, 100, 2, 1000]);
<!-- div --> <!-- div -->
### <a id="_.mixin" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2285" title="View in source">`_.mixin(object)`</a> ### <a id="_.mixin" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2286" title="View in source">`_.mixin(object)`</a>
Adds functions properties of `object` to the `lodash` function and chainable wrapper. Adds functions properties of `object` to the `lodash` function and chainable wrapper.
[&#9650;][1] [&#9650;][1]
@@ -1412,7 +1412,7 @@ _('larry').capitalize();
<!-- div --> <!-- div -->
### <a id="_.noConflict" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2315" title="View in source">`_.noConflict()`</a> ### <a id="_.noConflict" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2316" title="View in source">`_.noConflict()`</a>
Reverts the '_' variable to its previous value and returns a reference to the `lodash` function. Reverts the '_' variable to its previous value and returns a reference to the `lodash` function.
[&#9650;][1] [&#9650;][1]
@@ -1452,7 +1452,7 @@ initialize();
<!-- div --> <!-- div -->
### <a id="_.pick" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2176" title="View in source">`_.pick(object [, prop1, prop2, ..])`</a> ### <a id="_.pick" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2177" title="View in source">`_.pick(object [, prop1, prop2, ..])`</a>
Creates an object composed of the specified properties. Property names may be specified as individual arguments or as arrays of property names. Creates an object composed of the specified properties. Property names may be specified as individual arguments or as arrays of property names.
[&#9650;][1] [&#9650;][1]
@@ -1632,7 +1632,7 @@ _.rest([5, 4, 3, 2, 1]);
<!-- div --> <!-- div -->
### <a id="_.result" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2345" title="View in source">`_.result(object, property)`</a> ### <a id="_.result" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2346" title="View in source">`_.result(object, property)`</a>
Resolves the value of `property` on `object`. If the property is a function it will be invoked and its result returned, else the property value is returned. Resolves the value of `property` on `object`. If the property is a function it will be invoked and its result returned, else the property value is returned.
[&#9650;][1] [&#9650;][1]
@@ -1775,7 +1775,7 @@ _.sortedIndex([10, 20, 30, 40, 50], 35);
<!-- div --> <!-- div -->
### <a id="_.tap" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2213" title="View in source">`_.tap(value, interceptor)`</a> ### <a id="_.tap" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2214" title="View in source">`_.tap(value, interceptor)`</a>
Invokes `interceptor` with the `value` as the first argument, and then returns `value`. The primary purpose of this method is to "tap into" a method chain, in order to performoperations on intermediate results within the chain. Invokes `interceptor` with the `value` as the first argument, and then returns `value`. The primary purpose of this method is to "tap into" a method chain, in order to performoperations on intermediate results within the chain.
[&#9650;][1] [&#9650;][1]
@@ -1802,7 +1802,7 @@ _.chain([1,2,3,200])
<!-- div --> <!-- div -->
### <a id="_.template" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2448" title="View in source">`_.template(text, data, options)`</a> ### <a id="_.template" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2449" title="View in source">`_.template(text, data, options)`</a>
A JavaScript micro-templating method, similar to John Resig's implementation. Lo-Dash templating handles arbitrary delimiters, preserves whitespace, and correctly escapes quotes within interpolated code. A JavaScript micro-templating method, similar to John Resig's implementation. Lo-Dash templating handles arbitrary delimiters, preserves whitespace, and correctly escapes quotes within interpolated code.
[&#9650;][1] [&#9650;][1]
@@ -1881,7 +1881,7 @@ jQuery(window).on('scroll', throttled);
<!-- div --> <!-- div -->
### <a id="_.times" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2366" title="View in source">`_.times(n, callback [, thisArg])`</a> ### <a id="_.times" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2367" title="View in source">`_.times(n, callback [, thisArg])`</a>
Executes the `callback` function `n` times. Executes the `callback` function `n` times.
[&#9650;][1] [&#9650;][1]
@@ -1965,7 +1965,7 @@ _.uniq([1, 2, 1, 3, 1, 4]);
<!-- div --> <!-- div -->
### <a id="_.uniqueId" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2389" title="View in source">`_.uniqueId([prefix])`</a> ### <a id="_.uniqueId" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2390" title="View in source">`_.uniqueId([prefix])`</a>
Generates a unique id. If `prefix` is passed, the id will be appended to it. Generates a unique id. If `prefix` is passed, the id will be appended to it.
[&#9650;][1] [&#9650;][1]
@@ -1986,7 +1986,7 @@ _.uniqueId('contact_');
<!-- div --> <!-- div -->
### <a id="_.value" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2549" title="View in source">`_.value()`</a> ### <a id="_.value" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2550" title="View in source">`_.value()`</a>
Extracts the value from a wrapped chainable object. Extracts the value from a wrapped chainable object.
[&#9650;][1] [&#9650;][1]
@@ -2102,7 +2102,7 @@ _.zip(['moe', 'larry', 'curly'], [30, 40, 50], [true, false, false]);
<!-- div --> <!-- div -->
### <a id="_.templateSettings" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2574" title="View in source">`_.templateSettings`</a> ### <a id="_.templateSettings" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2575" title="View in source">`_.templateSettings`</a>
*(Object)*: By default, Lo-Dash uses ERB-style template delimiters, change the following template settings to use alternative delimiters. *(Object)*: By default, Lo-Dash uses ERB-style template delimiters, change the following template settings to use alternative delimiters.
[&#9650;][1] [&#9650;][1]
@@ -2111,7 +2111,7 @@ _.zip(['moe', 'larry', 'curly'], [30, 40, 50], [true, false, false]);
<!-- div --> <!-- div -->
### <a id="_.templateSettings.escape" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2583" title="View in source">`_.templateSettings.escape`</a> ### <a id="_.templateSettings.escape" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2584" title="View in source">`_.templateSettings.escape`</a>
*(RegExp)*: Used to detect `data` property values to be HTML-escaped. *(RegExp)*: Used to detect `data` property values to be HTML-escaped.
[&#9650;][1] [&#9650;][1]
@@ -2120,7 +2120,7 @@ _.zip(['moe', 'larry', 'curly'], [30, 40, 50], [true, false, false]);
<!-- div --> <!-- div -->
### <a id="_.templateSettings.evaluate" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2592" title="View in source">`_.templateSettings.evaluate`</a> ### <a id="_.templateSettings.evaluate" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2593" title="View in source">`_.templateSettings.evaluate`</a>
*(RegExp)*: Used to detect code to be evaluated. *(RegExp)*: Used to detect code to be evaluated.
[&#9650;][1] [&#9650;][1]
@@ -2129,7 +2129,7 @@ _.zip(['moe', 'larry', 'curly'], [30, 40, 50], [true, false, false]);
<!-- div --> <!-- div -->
### <a id="_.templateSettings.interpolate" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2601" title="View in source">`_.templateSettings.interpolate`</a> ### <a id="_.templateSettings.interpolate" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2602" title="View in source">`_.templateSettings.interpolate`</a>
*(RegExp)*: Used to detect `data` property values to inject. *(RegExp)*: Used to detect `data` property values to inject.
[&#9650;][1] [&#9650;][1]

View File

@@ -1868,7 +1868,7 @@
if (b.isEqual && isFunction(b.isEqual)) { if (b.isEqual && isFunction(b.isEqual)) {
return b.isEqual(a); return b.isEqual(a);
} }
// compare `[[Class]]` names // compare [[Class]] names
var className = toString.call(a); var className = toString.call(a);
if (className != toString.call(b)) { if (className != toString.call(b)) {
return false; return false;
@@ -2052,7 +2052,8 @@
*/ */
function isNaN(value) { function isNaN(value) {
// `NaN` as a primitive is the only value that is not equal to itself // `NaN` as a primitive is the only value that is not equal to itself
return value != +value && toString.call(value) == numberClass; // (perform the [[Class]] check first to avoid errors with some host objects in IE)
return toString.call(value) == numberClass && value != +value
} }
/** /**

2
lodash.min.js vendored
View File

@@ -16,7 +16,7 @@ x={m:"var j,y=-q,h=y;if(!e){if(s(g)&&g[0]===+g[0])return w.max.apply(w,g);if(t(g
l:"y.sort()"});E(arguments)||(E=function(a){return!(!a||!r.call(a,"callee"))});var T=N||g(oa);Q(i,{VERSION:"0.1.0",templateSettings:{escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g},after:function(a,b){return 1>a?b():function(){if(1>--a)return b.apply(this,arguments)}},bind:u,bindAll:function(a){var b=arguments,c=1;1==b.length&&(c=0,b=M(a));for(var d=b.length;c<d;c++)a[b[c]]=u(a[b[c]],a);return a},chain:function(a){return(new p(a)).chain()},clone:function(a){return a!== l:"y.sort()"});E(arguments)||(E=function(a){return!(!a||!r.call(a,"callee"))});var T=N||g(oa);Q(i,{VERSION:"0.1.0",templateSettings:{escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g},after:function(a,b){return 1>a?b():function(){if(1>--a)return b.apply(this,arguments)}},bind:u,bindAll:function(a){var b=arguments,c=1;1==b.length&&(c=0,b=M(a));for(var d=b.length;c<d;c++)a[b[c]]=u(a[b[c]],a);return a},chain:function(a){return(new p(a)).chain()},clone:function(a){return a!==
Object(a)?a:y(a)?a.slice():Q({},a)},compact:D,compose:function(){var a=arguments;return function(){for(var b=arguments,c=a.length;c--;)b=[a[c].apply(this,b)];return b[0]}},contains:pa,debounce:ja,defaults:ta,defer:function(a){var b=l.call(arguments,1);return K(function(){return a.apply(h,b)},1)},delay:function(a,b){var c=l.call(arguments,2);return K(function(){return a.apply(h,c)},b)},difference:m,escape:function(a){return(a+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g, Object(a)?a:y(a)?a.slice():Q({},a)},compact:D,compose:function(){var a=arguments;return function(){for(var b=arguments,c=a.length;c--;)b=[a[c].apply(this,b)];return b[0]}},contains:pa,debounce:ja,defaults:ta,defer:function(a){var b=l.call(arguments,1);return K(function(){return a.apply(h,b)},1)},delay:function(a,b){var c=l.call(arguments,2);return K(function(){return a.apply(h,c)},b)},difference:m,escape:function(a){return(a+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,
"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")},every:X,extend:Q,filter:W,find:qa,first:U,flatten:I,forEach:s,functions:M,groupBy:function(a,b){var c={};if(!q(b))var d=b,b=function(a){return a[d]};s(a,function(a,e,d){e=b(a,e,d);(c[e]||(c[e]=[])).push(a)});return c},has:function(a,b){return r.call(a,b)},identity:R,indexOf:G,initial:function(a,b,c){return l.call(a,0,-(b==h||c?1:b))},intersection:ga,invoke:function(a,b){var c=l.call(arguments,2),d=q(b);return B(a,function(a){return(d?b||a: "&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")},every:X,extend:Q,filter:W,find:qa,first:U,flatten:I,forEach:s,functions:M,groupBy:function(a,b){var c={};if(!q(b))var d=b,b=function(a){return a[d]};s(a,function(a,e,d){e=b(a,e,d);(c[e]||(c[e]=[])).push(a)});return c},has:function(a,b){return r.call(a,b)},identity:R,indexOf:G,initial:function(a,b,c){return l.call(a,0,-(b==h||c?1:b))},intersection:ga,invoke:function(a,b){var c=l.call(arguments,2),d=q(b);return B(a,function(a){return(d?b||a:
a[b]).apply(a,c)})},isArguments:E,isArray:y,isBoolean:function(a){return a===n||a===o||k.call(a)==ka},isDate:function(a){return k.call(a)==la},isElement:function(a){return!!(a&&1==a.nodeType)},isEmpty:da,isEqual:Y,isFinite:function(a){return za(a)&&k.call(a)==L},isFunction:q,isNaN:function(a){return a!=+a&&k.call(a)==L},isNull:function(a){return null===a},isNumber:function(a){return k.call(a)==L},isObject:function(a){return a===Object(a)},isRegExp:function(a){return k.call(a)==ma},isString:function(a){return k.call(a)== a[b]).apply(a,c)})},isArguments:E,isArray:y,isBoolean:function(a){return a===n||a===o||k.call(a)==ka},isDate:function(a){return k.call(a)==la},isElement:function(a){return!!(a&&1==a.nodeType)},isEmpty:da,isEqual:Y,isFinite:function(a){return za(a)&&k.call(a)==L},isFunction:q,isNaN:function(a){return k.call(a)==L&&a!=+a},isNull:function(a){return null===a},isNumber:function(a){return k.call(a)==L},isObject:function(a){return a===Object(a)},isRegExp:function(a){return k.call(a)==ma},isString:function(a){return k.call(a)==
H},isUndefined:function(a){return a===h},keys:T,last:ha,lastIndexOf:function(a,b){if(a==h)return-1;for(var c=a.length;c--;)if(a[c]===b)return c;return-1},map:B,max:ra,memoize:function(a,b){var c={};return function(){var d=b?b.apply(this,arguments):arguments[0];return r.call(c,d)?c[d]:c[d]=a.apply(this,arguments)}},min:x,mixin:na,noConflict:function(){t._=xa;return this},once:function(a){var b,c=o;return function(){if(c)return b;c=n;return b=a.apply(this,arguments)}},pick:function(a){for(var b,c=-1, H},isUndefined:function(a){return a===h},keys:T,last:ha,lastIndexOf:function(a,b){if(a==h)return-1;for(var c=a.length;c--;)if(a[c]===b)return c;return-1},map:B,max:ra,memoize:function(a,b){var c={};return function(){var d=b?b.apply(this,arguments):arguments[0];return r.call(c,d)?c[d]:c[d]=a.apply(this,arguments)}},min:x,mixin:na,noConflict:function(){t._=xa;return this},once:function(a){var b,c=o;return function(){if(c)return b;c=n;return b=a.apply(this,arguments)}},pick:function(a){for(var b,c=-1,
d=I(l.call(arguments,1)),f=d.length,e={};++c<f;)b=d[c],b in a&&(e[b]=a[b]);return e},pluck:P,range:function(a,b,c){c||(c=1);2>arguments.length&&(b=a||0,a=0);for(var d=-1,f=Math.max(Math.ceil((b-a)/c),0),e=Array(f);++d<f;)e[d]=a,a+=c;return e},reduce:A,reduceRight:ea,reject:C,rest:ia,result:function(a,b){if(a==h)return null;var c=a[b];return q(c)?a[b]():c},shuffle:function(a){var b,c=[];s(a,function(a,f){b=Math.floor(Math.random()*(f+1));c[f]=c[b];c[b]=a});return c},size:function(a){var b=k.call(a); d=I(l.call(arguments,1)),f=d.length,e={};++c<f;)b=d[c],b in a&&(e[b]=a[b]);return e},pluck:P,range:function(a,b,c){c||(c=1);2>arguments.length&&(b=a||0,a=0);for(var d=-1,f=Math.max(Math.ceil((b-a)/c),0),e=Array(f);++d<f;)e[d]=a,a+=c;return e},reduce:A,reduceRight:ea,reject:C,rest:ia,result:function(a,b){if(a==h)return null;var c=a[b];return q(c)?a[b]():c},shuffle:function(a){var b,c=[];s(a,function(a,f){b=Math.floor(Math.random()*(f+1));c[f]=c[b];c[b]=a});return c},size:function(a){var b=k.call(a);
return b==F||b==H?a.length:T(a).length},some:w,sortBy:function(a,b,c){if(q(b))c&&(b=u(b,c));else var d=b,b=function(a){return a[d]};return P(B(a,function(c,e){return{a:b(c,e,a),b:c}}).sort(function(a,b){var c=a.a,d=b.a;return c===h?1:d===h?-1:c<d?-1:c>d?1:0}),"b")},sortedIndex:fa,tap:function(a,b){b(a);return a},template:function(a,b,c){function d(a){return f.call(this,a,i)}c=ta(c||{},i.templateSettings);a="__p+='"+a.replace(ya,function(a){return"\\"+z[a]}).replace(c.escape||$,function(a,b){return"'+((__t=("+ return b==F||b==H?a.length:T(a).length},some:w,sortBy:function(a,b,c){if(q(b))c&&(b=u(b,c));else var d=b,b=function(a){return a[d]};return P(B(a,function(c,e){return{a:b(c,e,a),b:c}}).sort(function(a,b){var c=a.a,d=b.a;return c===h?1:d===h?-1:c<d?-1:c>d?1:0}),"b")},sortedIndex:fa,tap:function(a,b){b(a);return a},template:function(a,b,c){function d(a){return f.call(this,a,i)}c=ta(c||{},i.templateSettings);a="__p+='"+a.replace(ya,function(a){return"\\"+z[a]}).replace(c.escape||$,function(a,b){return"'+((__t=("+