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 249 B
import{isObject as t}from"../verify/isObject.js";export function objToArray(e,r=!1){const o=e=>{const s=[],n=Object.keys(e).length;for(let c=0;c<n;c+=1){const n=Object.keys(e)[c];r&&t(e[n])?s.push([n,o(e[n])]):s.push([n,e[n]])}return s};return o(e)}