@vect/vector-zipper
Advanced tools
Comparing version 0.2.8 to 0.2.9
@@ -12,3 +12,3 @@ 'use strict'; | ||
lo = lo || 0; | ||
const vec = Array(hi = hi || a && a.length); | ||
const vec = Array(hi = hi || (a === null || a === void 0 ? void 0 : a.length)); | ||
@@ -26,3 +26,3 @@ for (--hi; hi >= lo; hi--) vec[hi] = fn(a[hi], b[hi], hi); | ||
lo = lo || 0; | ||
const vec = Array(hi = hi || a && a.length); | ||
const vec = Array(hi = hi || (a === null || a === void 0 ? void 0 : a.length)); | ||
@@ -40,3 +40,3 @@ for (--hi; hi >= lo; hi--) vec[hi] = fn(a[hi], b[hi], c[hi], hi); | ||
lo = lo || 0; | ||
const vec = Array(hi = hi || a && a.length); | ||
const vec = Array(hi = hi || (a === null || a === void 0 ? void 0 : a.length)); | ||
@@ -87,3 +87,3 @@ for (--hi; hi >= lo; hi--) vec[hi] = fn(a[hi], b[hi], c[hi], d[hi], hi); | ||
const mutazip = (va, vb, fn, l) => { | ||
l = l || va && va.length; | ||
l = l || (va === null || va === void 0 ? void 0 : va.length); | ||
@@ -90,0 +90,0 @@ for (--l; l >= 0; l--) va[l] = fn(va[l], vb[l], l); |
@@ -8,3 +8,3 @@ function duozipper(a, b) { | ||
lo = lo || 0; | ||
const vec = Array(hi = hi || a && a.length); | ||
const vec = Array(hi = hi || (a === null || a === void 0 ? void 0 : a.length)); | ||
@@ -22,3 +22,3 @@ for (--hi; hi >= lo; hi--) vec[hi] = fn(a[hi], b[hi], hi); | ||
lo = lo || 0; | ||
const vec = Array(hi = hi || a && a.length); | ||
const vec = Array(hi = hi || (a === null || a === void 0 ? void 0 : a.length)); | ||
@@ -36,3 +36,3 @@ for (--hi; hi >= lo; hi--) vec[hi] = fn(a[hi], b[hi], c[hi], hi); | ||
lo = lo || 0; | ||
const vec = Array(hi = hi || a && a.length); | ||
const vec = Array(hi = hi || (a === null || a === void 0 ? void 0 : a.length)); | ||
@@ -83,3 +83,3 @@ for (--hi; hi >= lo; hi--) vec[hi] = fn(a[hi], b[hi], c[hi], d[hi], hi); | ||
const mutazip = (va, vb, fn, l) => { | ||
l = l || va && va.length; | ||
l = l || (va === null || va === void 0 ? void 0 : va.length); | ||
@@ -86,0 +86,0 @@ for (--l; l >= 0; l--) va[l] = fn(va[l], vb[l], l); |
{ | ||
"name": "@vect/vector-zipper", | ||
"version": "0.2.8", | ||
"version": "0.2.9", | ||
"description": "Zip function", | ||
@@ -33,3 +33,3 @@ "main": "dist/index.cjs.js", | ||
"homepage": "https://github.com/hoyeungw/vect#readme", | ||
"gitHead": "7b33acbf8f6796f6da550020296bfe592a86af72" | ||
"gitHead": "d1911a29fc0916f90c791b9a763bf1bec11c4eb1" | ||
} |
6626