Draymond Green scored with less than a second remaining to hand the Golden State Warriors a 97-95 win and extend their winning streak.
NBA: On-form Warriors edge last-gasp win over Miami Heat
The Warriors made it five straight wins while handing Miami only their second defeat in 12 home games.
Klay Thompson led Golden State with 27 points, while Miami's LeBron James had 31 in defeat.
Golden State might be hot, but not as hot as the Oklahoma City Thunder who made it nine straight wins with a 92-88 victory over the New Orleans Hornets.
Kevin Durant poured in 35 points as the Thunder came back from an 11-point half-time deficit.
The Los Angeles Clippers are close behind with an eight-game winning streak after topping the Charlotte Bobcats 100-94 behind 19 points and 10 assists from Chris Paul.
The Boston Celtics needed two overtimes to see off the Dallas Mavericks 117-115.
Paul Pierce scored 34 points while Rajon Rondo had 16 with 15 assists and nine rebounds.
The Chicago Bulls won a fourth straight road game as Joakim Noah scored 21 points and Luol Deng added 19 and 12 rebounds in a 96-89 victory over the Philadelphia 76ers.
The San Antonio Spurs' winning streak ended at five as Mo Williams hit a three-pointer on the buzzer to lift the Utah Jazz to a 99-96 victory.
Paul Millsap collected 24 points and 12 rebounds in the win for Utah.
Goran Dragic's last-second hook shot saw the Phoenix Suns top the Memphis Grizzles 82-80, ending a seven-game losing streak.
The Brooklyn Nets snapped their losing streak at five games as they topped the Toronto Raptors 94-88 on the road.
Joe Johnson had 23 points with Andray Blatche adding 14 and nine rebounds.
Paul George had 27 points as the Indiana Pacers came from 16 points down to beat the Cleveland Cavaliers 96-81.
Brandon Jennings scored 19 points to lead the Milwaukee Bucks to a 98-85 win over Sacramento Kings, while 22 points and 11 rebounds from Nikola Pekovic lifted the Minnesota Timberwolves to a 108-105 victory over the Denver Nuggets.
Josh Smith and Jeff Teague had 16 points each in an 86-80 win for the Atlanta Hawks over the Orlando Magic, while the Houston Rockets topped the Washington Wizards 99-93 behind 31 points from James Harden.
Follow us @SprtNationalUAE