@vect/matrix-init
Advanced tools
Comparing version 0.0.18 to 0.0.19
@@ -5,3 +5,3 @@ 'use strict'; | ||
const fab = (h, w) => { | ||
const draft = (h, w) => { | ||
const mx = Array(h); | ||
@@ -20,3 +20,3 @@ | ||
}; | ||
const ini = (h, w, fn) => { | ||
const init = (h, w, fn) => { | ||
const mx = Array(h); | ||
@@ -32,12 +32,13 @@ | ||
}) => { | ||
h = h || 1; | ||
w = w || 1; | ||
if (value !== undefined || value !== void 0) return iso(h, w, value); | ||
if (fn) return ini(h, w, fn); | ||
return fab(h, w); | ||
h = h || 1, w = w || 1; | ||
if (value !== null || value !== void 0) return iso(h, w, value); | ||
if (fn) return init(h, w, fn); | ||
return draft(h, w); | ||
}; | ||
exports.fab = fab; | ||
exports.ini = ini; | ||
exports.draft = draft; | ||
exports.fab = draft; | ||
exports.ini = init; | ||
exports.init = init; | ||
exports.iso = iso; | ||
exports.starter = starter; |
@@ -1,2 +0,2 @@ | ||
const fab = (h, w) => { | ||
const draft = (h, w) => { | ||
const mx = Array(h); | ||
@@ -15,3 +15,3 @@ | ||
}; | ||
const ini = (h, w, fn) => { | ||
const init = (h, w, fn) => { | ||
const mx = Array(h); | ||
@@ -27,9 +27,8 @@ | ||
}) => { | ||
h = h || 1; | ||
w = w || 1; | ||
if (value !== undefined || value !== void 0) return iso(h, w, value); | ||
if (fn) return ini(h, w, fn); | ||
return fab(h, w); | ||
h = h || 1, w = w || 1; | ||
if (value !== null || value !== void 0) return iso(h, w, value); | ||
if (fn) return init(h, w, fn); | ||
return draft(h, w); | ||
}; | ||
export { fab, ini, iso, starter }; | ||
export { draft, draft as fab, init as ini, init, iso, starter }; |
{ | ||
"name": "@vect/matrix-init", | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"description": "A debugging tool", | ||
@@ -33,3 +33,3 @@ "main": "dist/index.cjs.js", | ||
"homepage": "https://github.com/hoyeungw/vect#readme", | ||
"gitHead": "1c59375caefc11877b709baeb081542fffabd2ac" | ||
"gitHead": "bf98c2986bb3a9bf12df2b4f68987756a0a0844a" | ||
} |
4881