Why is this evaluating to false?

before[0] is definitely uppercased, so I’m confused why it’s evaluating to false

function myReplace(str, before, after) {
    console.log(before[0] === before[0].toUpperCase);
}

myReplace("A quick brown fox jumped over the lazy dog", "Jumped", "leaped");