Anons79 Mini Shell

Directory : /home/aplikasiposinfo/www/mazaya.samarinda.app/mazaya/node_modules/alpinejs/src/utils/
Upload File :
Current File : /home/aplikasiposinfo/www/mazaya.samarinda.app/mazaya/node_modules/alpinejs/src/utils/walk.js

export function walk(el, callback) {
    if (typeof ShadowRoot === 'function' && el instanceof ShadowRoot) {
        Array.from(el.children).forEach(el => walk(el, callback))

        return
    }

    let skip = false

    callback(el, () => skip = true)

    if (skip) return

    let node = el.firstElementChild

    while (node) {
        walk(node, callback, false)

        node = node.nextElementSibling
    }
}

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]