結果 : remove element from array based on condition javascript