UNPKG

qsu

Version:

qsu is a utility library that contains useful and frequently used functions. Start with your preferred language and the modern development environment.

1 lines 238 B
import{is2dArray as r}from"../verify/is2dArray.js";export function arrTo1dArray(t){const o=t=>{const e=[],n=t.length;for(let s=0;s<n;s+=1)"object"!=typeof t[s]?e.push(t[s]):r(t[s])?e.push(...o(t[s])):e.push(...t[s]);return e};return o(t)}