@x-oasis/shallow-array-equal
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -9,3 +9,3 @@ 'use strict'; | ||
var len = a.length; | ||
for (var index = 0; index < len - 1; index++) { | ||
for (var index = 0; index < len; index++) { | ||
if (a[index] !== b[index]) return false; | ||
@@ -12,0 +12,0 @@ } |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(r,e){if(!Array.isArray(r)||!Array.isArray(e))return!1;if(r.length!==e.length)return!1;for(var t=r.length,n=0;n<t-1;n++)if(r[n]!==e[n])return!1;return!0}; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(r,e){if(!Array.isArray(r)||!Array.isArray(e))return!1;if(r.length!==e.length)return!1;for(var t=r.length,n=0;n<t;n++)if(r[n]!==e[n])return!1;return!0}; | ||
//# sourceMappingURL=shallow-array-equal.cjs.production.min.js.map |
@@ -5,3 +5,3 @@ var index = (function (a, b) { | ||
var len = a.length; | ||
for (var index = 0; index < len - 1; index++) { | ||
for (var index = 0; index < len; index++) { | ||
if (a[index] !== b[index]) return false; | ||
@@ -8,0 +8,0 @@ } |
{ | ||
"name": "@x-oasis/shallow-array-equal", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "shallow array equal function", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -5,3 +5,3 @@ export default (a: Array<any>, b: Array<any>) => { | ||
const len = a.length; | ||
for (let index = 0; index < len - 1; index++) { | ||
for (let index = 0; index < len; index++) { | ||
if (a[index] !== b[index]) return false; | ||
@@ -11,2 +11,2 @@ } | ||
return true; | ||
}; | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
62
5321