We have a array of numbers. let's say
const num = [ 10, 12, 4, 3, 5, 5, 10, 12 ];
Element with no duplicate is 4 and 3 in the 'num' array. So function should return array such elements. It would be better if some in-built methods (eg: filter, indexOf etc..) can be used in the solution.
input = [ 10, 12, 4, 3, 5, 5, 10, 12 ];
required output = [4, 3];