Isaiah Thomas had 32 points and eight assists, Avery Bradley hit a go-ahead layup with 17.7 seconds left and the Boston Celtics extended their home winning streak to 13 games with a 105-104 win over the New York Knicks on Friday night.

Evan Turner had 21 points and eight rebounds for the Celtics, and Jae Crowder finished with 20 points and eight rebounds.

Boston trailed by eight points in the fourth quarter but used a series of mini-runs to eventually take the lead for good on the driving layup by Bradley.

Carmelo Anthony had a chance to win the game in the closing seconds but badly missed a 3-pointer off the backboard as time expired.

Anthony had 30 points and seven rebounds. Arron Afflalo added 17 points and Kristaps Porzingis finished with 15 points for the Knicks, who lost their third straight.

Boston got within two early in the final period, before the Knicks got some separation at 100-92.

But Boston rallied again, this time reeling off seven straight points to get back within a point with 1:32 remaining.

Anthony ended the run on New York’s next possession, rolling in an 18-footer to make it 102-99.

Boston’s Jared Sullinger scored to get it back to one, and after Robin Lopez came up well short on a hook, Turner connected on a jumper to put the Celtics in front 103-102.

Out of a timeout, Anthony got free off a screen and dropped in a short fade away to give New York its final lead of the night.

Anthony helped the Knicks shoot 52 percent (23 for 44) in the first half. They also connected on six 3s before halftime.

(Copyright (c) 2016 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)

Join our Newsletter for the latest news right to your inbox