Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
huggingchat/chat-ui
unbrandedhuman
/
DUET
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
DUET
/
src
/
lib
/
utils
/
deepestChild.ts
unbrandedhuman
Upload 83 files
1e95ed5
almost 2 years ago
raw
Copy download link
history
blame
contribute
delete
Safe
167 Bytes
export
function
deepestChild
(
el: HTMLElement
) {
let
newEl = el;
while
(newEl.
hasChildNodes
()) {
newEl = newEl.
lastElementChild
as
HTMLElement
;
}
return
newEl;
}