No one transformed bad times into sidesplitting comedy like Joan Rivers, who kept audiences laughing through a 50-year career that included bankruptcy, getting banned from The Tonight Show and seeing a husband commit suicide.
She even built a standup routine around caring for a handicapped boyfriend.
"I lived for nine years with a man with one leg," she told audiences in her 2012 standup special, Don't Start With Me. "One leg! He lost it in World War II. ... He didn't lose it, he knew exactly where he left it. ... [And] in my mind, that's littering."
But Rivers' talent for rapid-fire jokes and edgy humor was stilled Thursday, when the comic died of complications following a throat procedure. She was 81.
Born Joan Alexandra Molinsky in 1933, she ignored her family's objections to become an actress and comic. She performed in the same New York clubs as Woody Allen and Barbra Streisand, writing lines for more established acts like Phyllis Diller and the puppet Topo Gigio.
Asked whether she felt bad writing for a puppet while starting out, Rivers told WHYY's Fresh Air in 2012, "I'll write for Hitler [for] $500. ... When you're starving and got a car payment due? You go through any door that opens, and you don't know which is gonna be the one."
By the mid-1960s, she was appearing in front of the camera for variety programs like The Ed Sullivan Show, where she talked frankly about women at a time when you couldn't even say the word "pregnant" on TV.
"A girl, you're 30 years old, you're not married, you're an old maid," she said in one 1967 Ed Sullivan Show routine. "A man, he's 90 years old, he's not married, he's a catch. It's a whole different thing!"
But even though Sullivan and his wife were godparents to her daughter, Melissa, it was late-night host Johnny Carson who would become something of a mentor for Rivers, featuring her regularly on his Tonight Show.
In one famous exchange, Carson asked Rivers if men really liked smart women more.
Rivers shot back: "No man has ever put his hands up a woman's dress looking for a library card."
Carson made her the show's permanent guest host in 1983. But their friendship would end a few years later after Rivers called to let him know she would host a rival late-night show on the Fox network.
"He hung up on me," she told the Archive of American Television in an interview. "[I called] and said, 'Johnny, it's Joan, and I think I'm leaving the show. I have my own show at Fox,' and then click. So then I called him back and I said, 'Johnny!' And he clicked down again. He would not hear me out."
Carson would never speak to her again; he died in 2005.
Rivers' Late Show struggled from its start in 1986. She and her executive producer husband, Edgar Rosenberg, clashed with Fox while she struggled to compete with Carson.
A year later, Fox canceled the program, leaving Rivers banned from the Tonight Show and looking like a showbiz pariah. Rosenberg killed himself soon after; Rivers said her daughter was the one whom authorities told first, leaving the then-teenager to tell her mother.
But she used humor to break the ice with audiences even then, remembering during the standup special An Audience With Joan Rivers the first joke she told at her first performance after his death.
"I told the audience, 'My husband killed himself and it was my fault,' " she said. " 'We were making love and I took the bag off my head.' "
Rivers told Fresh Air the toughest thing about old age was seeing loved ones die.
"The loss is horrific," she said. "When I go upstairs at night — it sounds so stupid — I always turn to my living room and I say, 'Good night, Orin' — he was a man I lived with for nine years — and 'Good night, Edgar.' ... It's terribly sad."
But Rivers kept going through the '90s, hosting a daytime talk show, developing a line of jewelry for the home shopping channel QVC and teaming with her daughter to offer biting commentary from the red carpet for Oscar pre-shows on the E! and TV Guide channels.
A recent documentary on her life, A Piece of Work, highlighted her drive to stay relevant and youthful — working at a pace that would tire comics half her age. Its opening featured close-up shots of her face without makeup, revealing the nips and tucks of the countless plastic surgeries she joked about onstage.
The film also showed how tough she could be, taking on a heckler during a performance who objected to a joke that included a reference to deaf icon Helen Keller.
"Comedy is to make everybody laugh at everything and deal with things, you idiot," she shouted from the stage.
And the controversies kept coming. Rivers was criticized for calling Michelle Obama transgender and saying Palestinian civilians deserved to die in the Gaza conflict.
But the fuss didn't stop her from working. In her 80s, Rivers still juggled concert performances, a TV show on fashion, an Internet show and promotion for her 12th book, Diary of a Mad Diva.
True to form, she had been talking up the book in New York the day before she stopped breathing during a minor procedure in a clinic Aug. 28. She was rushed to Mount Sinai Hospital, where doctors placed her in a medically induced coma, and she breathed with assistance from machines.
In a statement announcing her mother's death, Melissa Rivers said she died peacefully "surrounded by family and close friends."
"My mother's greatest joy in life was to make people laugh," the statement continued. "Although that is difficult to do right now, I know her final wish would be that we return to laughing soon."
Joan Rivers' attitude about show business was summed up in an appearance on comic Louis C.K.'s FX show, Louie, where she gave him a pep talk after a tough show.
Copyright 2016 NPR. To see more, visit http://www.npr.org/.