๐Ÿ’พnode.$(), .$all()

select child/children from parent node

๐Ÿ”ฐ JS โŸฉ DOM โŸฉ types โŸฉ Node โŸฉ node.$()

// โญ๏ธ node.$(selector)
// โญ๏ธ ๆ”พๅœจ Node ไธŠ้ขๅฐฑๅฏไปฅๅŒๆ™‚็”จๅœจ Element, Document, DocumentFragment ไธŠโ—๏ธ
Node.prototype.$ = function(selector){
    return $(selector, this);
};

// โญ๏ธ elem.$all()
Node.prototype.$all = function(selector){
    return $all(selector, this);
};

Last updated

Was this helpful?