Problem
Create coordinate "Test" data structure with a JavaScript array of points. You have to use map, filter, and reduce in order for the following geometric transformations of the points in the array to take place.
• You need first translate each point by 3 units in the horizontal direction
• You need to rotate each point around the origin by 7 degrees.
Your function should deconstruct the points into one-dimensional arrays of numbers (corresponding to different coordinate axes), apply the transformation to each array, and repackages the arrays into an array of Points.]