Skip to content
0

katanakit-js / useRemove

Function: useRemove() ​

ts
function useRemove(target): void;

Defined in: src/infrastructure/dom/dom.service.ts:470

Removes the target element from the DOM.

Parameters ​

ParameterTypeDescription
targetstring | ElementA CSS selector string or an Element instance.

Returns ​

void

Example ​

ts
useRemove(".modal-overlay");

Released under the MIT License.