Came across a nifty Medium article on JS arrays quick operations and whipped this up to flex some JS muscles.
Ever wondered how some frameworks add elements on the fly to their components? For example, using attributes like ngFor
in Angular.
They may be leveraging simple DOM functions like createElement
for that magic.
Probably to greater extents than this example...🤔