Buckets:
| /** | |
| * Insert a given element as the first child of a parent element. | |
| * | |
| * @param node the element to prepend | |
| * @param parent the parent element | |
| */ | |
| export default function prepend(node, parent) { | |
| if (node && parent) { | |
| if (parent.firstElementChild) { | |
| parent.insertBefore(node, parent.firstElementChild); | |
| } else { | |
| parent.appendChild(node); | |
| } | |
| return node; | |
| } | |
| return null; | |
| } |
Xet Storage Details
- Size:
- 409 Bytes
- Xet hash:
- 7dd619497944f66af1c58d7621086dc3e67dfe0b402438c98befe6ec8e8a8021
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.