Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simple solution in Clear category for [old] Common Words by bryukh
"use strict";
function commonWords(first, second) {
const words1 = first.split(",");
const words2 = second.split(",");
const common = words1.filter((w) => words2.indexOf(w) !== -1);
return common.sort().join(",");
}
June 25, 2016
Comments: