/
dimamir
/
yjs
Обзор
Документация
Войти
/
dimamir
/
yjs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/utils/logging.js
21 строка
476 B
Kevin Jahns
fix Y.Text formatting issue - closes #606
21 янв 2024, 13:27
21 янв 2024, 13:27
1cb52dc
Код
Авторство
О чём код?
import { AbstractType // eslint-disable-line } from '../internals.js' /** * Convenient helper to log type information. * * Do not use in productive systems as the output can be immense! * * @param {AbstractType<any>} type */ export const logType = type => { const res = [] let n = type._start while (n) { res.push(n) n = n.right } console.log('Children: ', res) console.log('Children content: ', res.filter(m => !m.deleted).map(m => m.content)) }