Really nice use of .reduce() there in the getWordRotations, been studying the implementation and curious how this thing knows when to return the array 🤔
Ok never mid, it's [...word] spreading it into an array which is just being used as an 'iterations count'. Noob moment there 😝
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.