typescript filter undefined

Solutions on MaxInterview for typescript filter undefined by the best coders in the world