Angular Unique Array In Javascript Mdn Math Javascript