User:Krankuba

====the simplest, library-free code for implementing array intersections in javascript: ==== ​var array1 = [1, 2, 3, 4, 5, 6, 7, 9]; var array2 = [0, 3, 6, 7, 8, 9, 10]; array1.filter(function(n) {    return array2.indexOf(n) != -1; });

reverse a string:
strReversed = str.split().reverse.join();

next item code code code next item code code code next item code code code next item code code code next item