<pre style="background-color:#ffffff;">
<span style="color:#323232;">class Lol {
</span><span style="color:#323232;"> get length() {
</span><span style="color:#323232;"> console.log('Lol. LMAO even.');
</span><span style="color:#323232;"> return 5;
</span><span style="color:#323232;"> }
</span><span style="color:#323232;">}
</span><span style="color:#323232;">
</span><span style="color:#323232;">const noLolsAllowed = (notALol: string) => {
</span><span style="color:#323232;"> for (let i = 0; i < notALol.length; ++i) {
</span><span style="color:#323232;"> console.log('No lols here');
</span><span style="color:#323232;"> }
</span><span style="color:#323232;">}
</span><span style="color:#323232;">
</span><span style="color:#323232;">noLolsAllowed(new Lol() as unknown as string);
</span>
Add comment