diff --git a/src/components/textarea/textarea-remove.js b/src/components/textarea/textarea-remove.js new file mode 100644 index 0000000..378e7bb --- /dev/null +++ b/src/components/textarea/textarea-remove.js @@ -0,0 +1,10 @@ +'use strict' + +function removeTextarea(config) { + const { id } = config + const TEXTAREA = document.getElementById(id) + if (!TEXTAREA) return + TEXTAREA.remove() +} + +export { removeTextarea }