diff options
| -rw-r--r-- | docs/bqn.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/bqn.js b/docs/bqn.js index e14bdf47..b1b2f1b0 100644 --- a/docs/bqn.js +++ b/docs/bqn.js @@ -516,7 +516,7 @@ let dojs = (x,w) => { let toBQN = x => { if (isnum(x)) return x; if (typeof x==='string') { if (Array.from(x).length!==1) throw Error("•JS: JS strings are one character; use Array.from for BQN strings"); return x; } - if (x instanceof Array) return arr(x.map(toBQN),x.sh||[x.length],toBQN(x.fill)); + if (x instanceof Array) return arr(x.map(toBQN),x.sh||[x.length],has(x.fill)?tofill(toBQN(x.fill)):x.fill); if (isfunc(x)) { let f=(a,b)=>toBQN(x(a,b)); f.m=x.m; return f; } throw Error("•JS: Unrecognized JS result"); } |
