This commit is contained in:
Mariusz Nowak
2014-05-01 12:53:13 +02:00
parent d37f8a6667
commit adaf4deb97
9 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ var toPosInt = require('../../number/to-pos-integer')
module.exports = function (searchElement/*, fromIndex*/) {
var i, l, fromIndex, val;
if (searchElement === searchElement) { //jslint: skip
if (searchElement === searchElement) { //jslint: ignore
return indexOf.apply(this, arguments);
}
@@ -22,7 +22,7 @@ module.exports = function (searchElement/*, fromIndex*/) {
for (i = fromIndex; i < l; ++i) {
if (hasOwnProperty.call(this, i)) {
val = this[i];
if (val !== val) return i; //jslint: skip
if (val !== val) return i; //jslint: ignore
}
}
return -1;
+2 -2
View File
@@ -9,7 +9,7 @@ var toPosInt = require('../../number/to-pos-integer')
module.exports = function (searchElement/*, fromIndex*/) {
var i, fromIndex, val;
if (searchElement === searchElement) { //jslint: skip
if (searchElement === searchElement) { //jslint: ignore
return lastIndexOf.apply(this, arguments);
}
@@ -22,7 +22,7 @@ module.exports = function (searchElement/*, fromIndex*/) {
for (i = fromIndex; i >= 0; --i) {
if (hasOwnProperty.call(this, i)) {
val = this[i];
if (val !== val) return i; //jslint: skip
if (val !== val) return i; //jslint: ignore
}
}
return -1;
+4 -4
View File
@@ -14,7 +14,7 @@ var iteratorSymbol = require('es6-symbol').iterator
module.exports = function (arrayLike/*, mapFn, thisArg*/) {
var mapFn = arguments[1], thisArg = arguments[2], Constructor, i, j, arr, l, code, iterator
, result, getIterator, isPlain, value;
, result, getIterator, value;
arrayLike = Object(validValue(arrayLike));
@@ -53,7 +53,7 @@ module.exports = function (arrayLike/*, mapFn, thisArg*/) {
while (!result.done) {
value = mapFn ? call.call(mapFn, thisArg, result.value, i) : result.value;
if (!Constructor) {
arr[i] = value
arr[i] = value;
} else {
desc.value = value;
defineProperty(arr, i, desc);
@@ -74,7 +74,7 @@ module.exports = function (arrayLike/*, mapFn, thisArg*/) {
}
value = mapFn ? call.call(mapFn, thisArg, value, j) : value;
if (!Constructor) {
arr[j] = value
arr[j] = value;
} else {
desc.value = value;
defineProperty(arr, j, desc);
@@ -91,7 +91,7 @@ module.exports = function (arrayLike/*, mapFn, thisArg*/) {
for (i = 0; i < l; ++i) {
value = mapFn ? call.call(mapFn, thisArg, arrayLike[i], i) : arrayLike[i];
if (!Constructor) {
arr[i] = value
arr[i] = value;
} else {
desc.value = value;
defineProperty(arr, i, desc);
+1 -1
View File
@@ -1,3 +1,3 @@
'use strict';
module.exports = function (value) { return (value !== value); } //jslint: skip
module.exports = function (value) { return (value !== value); } //jslint: ignore
+2 -2
View File
@@ -31,12 +31,12 @@ module.exports = function (a, b) {
a = resolve(a);
b = resolve(b);
if (a == b) return typeMap[typeof a] - typeMap[typeof b]; //jslint: skip
if (a == b) return typeMap[typeof a] - typeMap[typeof b]; //jslint: ignore
if (a == null) return -1;
if (b == null) return 1;
if ((typeof a === 'string') || (typeof b === 'string')) {
return strCompare.call(a, b);
}
if ((a !== a) && (b !== b)) return 0; //jslint: skip
if ((a !== a) && (b !== b)) return 0; //jslint: ignore
return Number(a) - Number(b);
};
+1 -1
View File
@@ -1,5 +1,5 @@
'use strict';
module.exports = function (x, y) {
return ((x === y) || ((x !== x) && (y !== y))); //jslint: skip
return ((x === y) || ((x !== x) && (y !== y))); //jslint: ignore
};
+1 -1
View File
@@ -7,7 +7,7 @@ var value = require('./valid-value')
module.exports = function (obj) {
var i;
value(obj);
for (i in obj) { //jslint: skip
for (i in obj) { //jslint: ignore
if (propertyIsEnumerable.call(obj, i)) return false;
}
return true;
+1 -1
View File
@@ -6,5 +6,5 @@
module.exports = function (x, y) {
return (x === y) ?
((x !== 0) || ((1 / x) === (1 / y))) :
((x !== x) && (y !== y)); //jslint: skip
((x !== x) && (y !== y)); //jslint: ignore
};
+1 -1
View File
@@ -7,7 +7,7 @@ module.exports = function (t, a) {
a.throws(function () { t(''); }, TypeError, "''");
a(t(x = {}), x, "Object");
a(t(x = function () {}), x, "Function");
a(t(x = new String('raz')), x, "String object"); //jslint: skip
a(t(x = new String('raz')), x, "String object"); //jslint: ignore
a(t(x = new Date()), x, "Date");
a.throws(function () { t(); }, TypeError, "Undefined");