DETROIT >> The Detroit Pistons are in a slump following their 130-120 loss to the Boston Celtics Wednesday night.

They are on a three-game losing streak and are six games under .500 (9-15). However, they almost completed a 19-point comeback at TD Garden, and Cade Cunningham was at the forefront of the resurgence.

He scored 10 of his 27 points in the fourth quarter. A mid-range jumper he connected on with 6:30 left in the period helped the Pistons cut their double-digit deficit to six. In addition to his scoring, Cunningham also registered a career-best 14 assists, marking his seventh double-double over the previous eight games.

Cunningham’s performance against the Celtics was a sample of how the former No. 1 overall pick has played at an All-NBA level a quarter into the season. It’s the reason why J.B. Bickerstaff has seen “superstar” potential in the short amount of time he has spent with Cunningham as coach of the Pistons.

“I don’t say this lightly by any means, but being around him and spending time with him, he’s the guy,” Bickerstaff said. “He has the ability to be an elite guy on a basketball team because of all of the things he’s capable of doing. He can manipulate the game, he can score, he can rebound, and he makes his teammates better. Cade has proven he can defend at high levels and make clutch plays down the stretch.”

Cunningham’s objective entering the season was far from personal accolades. Helping the Pistons re-establish themselves as a respectable franchise was at the top of his list. But after the Pistons’ first 24 games, he is on the trajectory of earning his first All-NBA nod.

Cunningham is averaging career highs in nearly each statistical category: 23.7 points, 45.2% shooting from the field, and 37.8% on three-point shooting. He is sixth in the league in usage percentage (31.5%), which has led to him ranking third in the league in assists (9.1) — trailing only Trae Young (Atlanta Hawks) and Nikola Jokic (Denver Nuggets).

Since the start of his career, Cunningham always has shown flashes of being one of the league’s most prominent offensive players. But amid his fourth season, Cunningham has evolved into an all-around prospect, given the improvements made on the defensive end due to the efforts displayed on a nightly basis.

Although he scored the game-winning basket during the Pistons’ 122-121 win over the Atlanta Hawks on Nov. 8, Cunningham sealed the victory with a block on Hawks forward Onyeka Okongwu. He has recorded 16 blocks, six away from surpassing last season’s total of 22.

He notched his third consecutive triple-double in the win, tying Hall-of-Famer Grant Hill for the longest streak in team history. With four triple-doubles this season, he is tied for fourth with Sacramento Kings All-Star forward Domantas Sabonis.

“To be able to watch him every night, it’s a blessing — he’s so special,” Pistons guard Malik Beasley said. “To finish that game that way and get the game-winner and the block, it’s tough. That’s an All-Star right there. We got to make sure we win games so he can get what he needs.”

Only a few players are playing better than Cunningham on an individual level, but the Pistons’ lack of wins continues to hamper recognition. Detroit is still in an ideal position to register its first winning season in six years. A winning record by February could lead to Cunningham representing the franchise at the 74th All-Star game in San Francisco. A selection to this season’s All-NBA teams could be in store in late April.

“All of that stuff is in the mind and on my heart, but it is all about being the best version of myself for my team,” Cunningham said.

“I am not focusing on making that the main goal for the year. My main goal is to improve the Pistons and have a better season.”