3 ms·
Indeed. I'd suggest a change in this code even if this change in FF hadn't arrived.
by jagged-chisel 6y ago
Indeed. I'd suggest a change in this code even if this change in FF hadn't arrived.
- 1f60c 6y agoI think GP was joking. A far more straightforward way to shorten text to a given length is: const shorten = (text, length) => text.substring(0, length);
- seanmcdirmid 6y agoProbably way more efficient than relying on a side effect to a DOM update as well.
- fpoling 6y agoBut it is the Web. Somebody must be using it.
- deleted 6y ago[deleted]
- gruez 6y agowhoosh