Luka Doncic produced his fifth triple-double of the season in the Dallas Mavericks' loss to the New York Knicks at Madison Square Garden.