FREE LOGO

reverseByModulo

reverseByModulo

					console.log(reverseByModulo([1,2,3,4,5,6,7,8,9,10,11,12],1));
					// → [12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1]
					console.log(reverseByModulo([1,2,3,4,5,6,7,8,9,10,11,12],2));
					// → [12, 10, 8, 6, 4, 2]
					console.log(reverseByModulo([1,2,3,4,5,6,7,8,9,10,11,12],3));
					// → [12, 9, 6, 3]
					console.log(reverseByModulo([1,2,3,4,5,6,7,8,9,10,11,12],4));
					// → [12, 8, 4]
					console.log(reverseByModulo([1,2,3,4,5,6,7,8,9,10,11,12],5));
					// → [10, 5]
				
Total page view 19693. Yesterday 158. Page visit today 156.