Avoid unnecessarily coercing start to a number.

This commit is contained in:
John-David Dalton
2014-03-29 13:33:50 -07:00
parent 4d337f0bee
commit cc2e434f3d

View File

@@ -3003,7 +3003,7 @@
var index = -1,
length = array ? array.length : 0;
start = +start || 0;
start = typeof start == 'undefined' ? 0 : (+start || 0);
if (start < 0) {
start = nativeMax(length + start, 0);
} else if (start > length) {