Implement positiveElements function in helper.js

It should accept an array and return a new one that consists only of the positive elements from the original array.

Original array shouldn’t be modified.

This task is part of the Full-Stack JavaScript Course
If you have any issues with it, you can ask for community help below the post
Feel free to help others if you’ve already solved the task

helper.js

export const positiveElements = (arr) => {
  return arr;
}

solution.js

import { positiveElements } from './helper.js';

const arr = [ 10, -10, 20, -55, 1, 5, 12, -15, 0 ];

console.log(`Given the original array ${arr}, positive elements are ${positiveElements(arr)}`); // [10, 20, 1, 5, 12]