Definition
To almost succeed in doing something, or for something to almost happen to someone.
He came within a whisker of winning the race, but ultimately lost.
They came within a whisker of missing their flight, but fortunately arrived just in time.
The climber came within a whisker of falling off the cliff, but he managed to grab a rock.