Ace Up One’s Sleeve

What does the idiom “Ace Up One’s Sleeve” mean?

Definition:

A surprise advantage of which others are not aware.

For example:

“Susan had an ace up her sleeve when it came to dating Jason—she was friends with Jason’s sister, and she knew a lot about his interests.”

Notes:

Also “an ace in the hole.”