Skip to content

Instantly share code, notes, and snippets.

@MrBisquit
MrBisquit / countVowels.ts
Last active November 24, 2023 20:40
Minimalistic TS code
const countVowels = (s: string) => { let v = 0; let ss = s.split(''); ss.forEach(c => { if(c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') { v++; } }); return v; }
@MrBisquit
MrBisquit / ceaserCipher.js
Last active August 15, 2023 07:22
Caesar Cipher | DDS Code Challenge
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
if (ar || !(i in from)) {
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
ar[i] = from[i];
}
}
return to.concat(ar || Array.prototype.slice.call(from));
};
function caesarCipher(string, shiftValue) {