import { log, rand, getStringWidth } from '../../src'; import chalk from 'chalk'; // log( // [ // ['View', 'Struct'], // ['Base', ['string', 'number', 'boolean', 'undefined', 'null'].join(', ')], // ['Table', ['Array1D', 'Array2D', 'LinkList', 'Set', 'Map', 'Object'].join(', ')], // ['BinaryTree', 'BinaryTree'], // ['Tree', 'Tree'], // ], // { // hideColHead: true, // hideRowHead: true, // showDivider: true, // } // ); console.clear(); log([ ['hello', 'world'], [12, 3.1415926], [true, false], [undefined, null], [{ x: 1, y: rand.intArray(10) }, rand.array(() => rand.array(() => rand.string(), 3), 6)], [rand.array(() => rand.array(() => rand.intArray(3), 3), 3), rand.binaryTree(() => rand.string(), 16)], [rand.tree(() => rand.string(), 16), rand.array(() => rand.intArray(10), 10)], ]);