mirror of
https://github.com/arnaucube/circom.git
synced 2026-02-07 19:26:43 +01:00
BigArray in code
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
|
||||
const BigArray = require("./bigArray");
|
||||
const Readable = require("stream").Readable;
|
||||
|
||||
module.exports = function streamFromArrayTxt(ma) {
|
||||
@@ -22,7 +22,7 @@ module.exports = function streamFromArrayTxt(ma) {
|
||||
|
||||
|
||||
function getFirstIdx(ma) {
|
||||
if (!Array.isArray(ma)) return [];
|
||||
if (typeof ma.push !== "function" ) return [];
|
||||
return [0, ...getFirstIdx(ma[0])];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user