Pointless getElement Wrapper
function getElement(id) { return document.getElementById(id); }
A JavaScript code snippet defines a getElement function that simply calls document.getElementById with the provided ID. The joke is the unnecessary wrapper around an existing method, often shared as a reaction to overengineering or redundant code.
- @gentoomemes / 756 2022-07-28
- Type
- image
- Size
- 769×149 · 12.4 KiB
- Mood
- sarcastic
- Language
- en
- Added