node-ejs-renderer/node_modules/@jsonjoy.com/util/lib/print/printBinary.js

14 lines
430 B
JavaScript
Raw Permalink Normal View History

2024-06-09 13:55:01 -04:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.printBinary = void 0;
const printBinary = (tab = '', children) => {
const [left, right] = children;
let str = '';
if (left)
str += `\n${tab}${left(tab + ' ')}`;
if (right)
str += `\n${tab}${right(tab + ' ')}`;
return str;
};
exports.printBinary = printBinary;
//# sourceMappingURL=printBinary.js.map