* Prepend el to target * * @param {Element} el * @param {Element} target
(el, target)
| 1238 | */ |
| 1239 | |
| 1240 | function prepend(el, target) { |
| 1241 | if (target.firstChild) { |
| 1242 | before(el, target.firstChild); |
| 1243 | } else { |
| 1244 | target.appendChild(el); |
| 1245 | } |
| 1246 | } |
| 1247 | |
| 1248 | /** |
| 1249 | * Replace target with el |
no test coverage detected