@vect/vector-zipper
Advanced tools
Comparing version 0.4.9 to 0.4.10
@@ -11,3 +11,3 @@ 'use strict'; | ||
} = this; | ||
const zip = Array(hi = hi ?? (a == null ? void 0 : a.length)); | ||
const zip = Array(hi = hi ?? (a === null || a === void 0 ? void 0 : a.length)); | ||
@@ -24,3 +24,3 @@ for (let i = lo ?? 0; i < hi; i++) zip[i] = fn(a[i], b[i], i); | ||
} = this; | ||
const zip = Array(hi = hi ?? (a == null ? void 0 : a.length)); | ||
const zip = Array(hi = hi ?? (a === null || a === void 0 ? void 0 : a.length)); | ||
@@ -37,3 +37,3 @@ for (let i = lo ?? 0; i < hi; i++) zip[i] = fn(a[i], b[i], c[i], i); | ||
} = this; | ||
const zip = Array(hi = hi ?? (a == null ? void 0 : a.length)); | ||
const zip = Array(hi = hi ?? (a === null || a === void 0 ? void 0 : a.length)); | ||
@@ -75,3 +75,3 @@ for (let i = lo ?? 0; i < hi; i++) zip[i] = fn(a[i], b[i], c[i], d[i], i); | ||
const mutazip = (va, vb, fn, hi) => { | ||
hi = hi ?? (va == null ? void 0 : va.length); | ||
hi = hi ?? (va === null || va === void 0 ? void 0 : va.length); | ||
@@ -84,3 +84,3 @@ for (let i = 0; i < hi; i++) va[i] = fn(va[i], vb[i], i); | ||
const iterzip = (va, vb, action, hi) => { | ||
hi = hi ?? (va == null ? void 0 : va.length); | ||
hi = hi ?? (va === null || va === void 0 ? void 0 : va.length); | ||
@@ -87,0 +87,0 @@ for (let i = 0; i < hi; i++) action(va[i], vb[i], i); |
@@ -7,3 +7,3 @@ function duozipper(a, b) { | ||
} = this; | ||
const zip = Array(hi = hi ?? (a == null ? void 0 : a.length)); | ||
const zip = Array(hi = hi ?? (a === null || a === void 0 ? void 0 : a.length)); | ||
@@ -20,3 +20,3 @@ for (let i = lo ?? 0; i < hi; i++) zip[i] = fn(a[i], b[i], i); | ||
} = this; | ||
const zip = Array(hi = hi ?? (a == null ? void 0 : a.length)); | ||
const zip = Array(hi = hi ?? (a === null || a === void 0 ? void 0 : a.length)); | ||
@@ -33,3 +33,3 @@ for (let i = lo ?? 0; i < hi; i++) zip[i] = fn(a[i], b[i], c[i], i); | ||
} = this; | ||
const zip = Array(hi = hi ?? (a == null ? void 0 : a.length)); | ||
const zip = Array(hi = hi ?? (a === null || a === void 0 ? void 0 : a.length)); | ||
@@ -71,3 +71,3 @@ for (let i = lo ?? 0; i < hi; i++) zip[i] = fn(a[i], b[i], c[i], d[i], i); | ||
const mutazip = (va, vb, fn, hi) => { | ||
hi = hi ?? (va == null ? void 0 : va.length); | ||
hi = hi ?? (va === null || va === void 0 ? void 0 : va.length); | ||
@@ -80,3 +80,3 @@ for (let i = 0; i < hi; i++) va[i] = fn(va[i], vb[i], i); | ||
const iterzip = (va, vb, action, hi) => { | ||
hi = hi ?? (va == null ? void 0 : va.length); | ||
hi = hi ?? (va === null || va === void 0 ? void 0 : va.length); | ||
@@ -83,0 +83,0 @@ for (let i = 0; i < hi; i++) action(va[i], vb[i], i); |
{ | ||
"name": "@vect/vector-zipper", | ||
"version": "0.4.9", | ||
"version": "0.4.10", | ||
"description": "Zip function", | ||
@@ -33,3 +33,3 @@ "main": "dist/index.cjs.js", | ||
"homepage": "https://github.com/hoyeungw/vect#readme", | ||
"gitHead": "2b1a6642d2b4dea4f680a501bb29d6534626abe1" | ||
"gitHead": "1d5453c2bafd0c4cb02adaa1db576a139d3e1012" | ||
} |
7026