When we use objects as storage, the index is often just some string or integer version of the key. When we're a fixed-size array as storage, we need to generate a hash code: a value that maps the key to a valid index/position in the array. After deciding on an index, depending ...
Note:I am usingTypeScripthere, but you absolutely donotneed any additional tooling to create a Web Component. In fact, I wrote my initial proof-of-concept in vanilla JS. I added TypeScript later, to bolster confidence in others using it as an NPM package. Thecta-modal.tsfile is chunked...