Tuesday, March 14, 2023

Extract the non-tagged contents of HTML in browser

Yes, you can use the RegularExpression of cource. But, there is cool idea, how to extract tagged content in browser:

JS String padding

Sometimes we want the string to have a specific length. We can use the padStart and padEnd methods.

Sunday, February 5, 2023

Removing Event Listeners with AbortController()

With the AbortControler you can cancel fetch request but remove Event Listeners too.

Let's look at an example:

You can use one signal to remove multiple listeners: