Two sum: Difference between revisions

m
→‎ES5: Added one word to text
(Added Unicon, though this would look better if it suspended all solutions and not simply returning the first)
m (→‎ES5: Added one word to text)
Line 350:
of the cartesian grid, skipping mirror-image and duplicate number pairs.
Returning [] where a sum condition is not met similarly acts as a filter – all of the empty lists
in the map result are eliminated by the concat.
 
<lang JavaScript>(function () {
9,659

edits