MCPcopy Create free account
hub / github.com/codecombat/codecombat / isMe

Method isMe

app/views/common/UserView.js:43–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 }
42
43 isMe () {
44 let needle
45 return (needle = this.userID, [me.id, me.get('slug')].includes(needle))
46 }
47
48 onLoaded () {
49 if (!(this.user != null ? this.user.isAnonymous() : undefined)) { this.userData = this.user }

Callers 1

fetchUserMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected