HobbiesRepo

HOBBIES REPO

WELCOME TO MY HOBBIES REPO

UNUSEFUL codes are stored in this repository. https://heishi1humanity.github.io/HobbiesRepo/

WAVES


PRIME NUMBER


MATH


PI


Math.max() VS Array.prototype.reduce()


Math.max() VS Array.prototype.reduce()
If you want to find out the largest number from array, you can use Math.max(...array). However this function can’t work if the array is so big. If you need to find out the largest number from big array, you should use array.reduce((a,b) => (a > b) ? a : b). This file compare the speed of Math.max() with the speed of Array.prototype.reduce().

Text Encrypter(TEST)


link is here
Text Encrypter
Now, Salsa20 / ChaCha20 is available