I have an array of usernames that I am rendering in a list like so:
{{#each contacts}}
<div class="name">{{this}}</div>
{{/each}}
This works just fine, but then I try to get the username from an event:
'click .name': function(e,t){
console.log(this)
}
I get this frustrating object String {0: "c", 1: "h", 2: "a", 3: "r", 4: "l", 5: "i", 6: "e", length: 7, [[PrimitiveValue]]: "charlie"}
which makes it very challenging to do string comparisons with. Any ideas why this is even a problem or what to do about it?