Ad
  • Custom User Avatar

    I'd suggest adding a specific test checking for duplicates for JavaScript or removing it from the info / instructions if you didn't really want that to be part of the kata.

    Could just add "I" twice to the array in var vv...

    vv = ["I", "1.9", "ou", "ve", "ect", "I", "omm", "gla", "oint", "pini", "wh", "oes", "by", "ion", "or", "he", "ple", "ing"]

    Then update the var arr1 to...
    var arr1 = sample(vv,x+1), arr2 = sample(uu,15+x*2), exp = in__array(arr1,arr2).sort().filter(function(item, index, arr) { return item != arr[index - 1] });