import { getText } from '../../utils';
import { reduce } from './';
const unknown = (node, schema) => {
const result = [];
node.forEach(n => {
result.push(reduce(n, schema));
});
if (result.length > 0) {
return result.join('');
}
return getText(node);
};
export default unknown;