daikiki@lemmy.world to A Boring Dystopia@lemmy.world · 19 hours agoMaybe I'll just switch back to hotbotlemmy.worldimagemessage-square61fedilinkarrow-up1230arrow-down15
arrow-up1225arrow-down1imageMaybe I'll just switch back to hotbotlemmy.worlddaikiki@lemmy.world to A Boring Dystopia@lemmy.world · 19 hours agomessage-square61fedilink
minus-squarejtrek@startrek.websitelinkfedilinkarrow-up3·edit-22 hours ago const countOfT = (word) => word.split('').filter(i => i === 't').length countOfT('colonialism') 0 countOfT('this is an example sentence') 2 There’s probably a more elegant way to do it.
minus-squareMwa@thelemmy.clublinkfedilinkEnglisharrow-up1arrow-down1·2 hours agonice to know that does not need AI ig
const countOfT = (word) => word.split('').filter(i => i === 't').length countOfT('colonialism') 0 countOfT('this is an example sentence') 2There’s probably a more elegant way to do it.
nice to know that does not need AI ig