(type)
| 64 | * @param {keyof HTMLElementTagNameMap} type |
| 65 | */ |
| 66 | export const createNode = (type) => { |
| 67 | const el = document.createElement(type); |
| 68 | |
| 69 | if (type === BUTTON_TAG) { |
| 70 | el.type = type; |
| 71 | } |
| 72 | |
| 73 | return el; |
| 74 | }; |
| 75 | |
| 76 | /** |
| 77 | * @param {HTMLElement} el |
no outgoing calls
no test coverage detected
searching dependent graphs…