Skip to content

Instantly share code, notes, and snippets.

@0oooo
0oooo / snapexo.js
Last active April 26, 2021 23:16
solution to reversing words as chars in same array
const reverse_chars = (chars, i, j) => {
while(i < j){
const temp = chars[i];
chars[i] = chars[j];
chars[j] = temp;
i++;
j--;
}
return chars;

Keybase proof

I hereby claim:

To claim this, I am signing this object: