結果 : how to remove object from array in javascript based on condition