@bookbox/core
Version:
Bookbox — e-book format
9 lines (8 loc) • 332 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getIterableBook = void 0;
const utils_1 = require("../utils");
exports.getIterableBook = (0, utils_1.iterableTreeGetter)({
getChildren: item => (typeof item !== 'string' ? item.children : []),
isLeaf: item => typeof item === 'string',
});