jquery check if click to this self not this child

JavaScript
if ($(e.target).is(this)){
  console.log("do something");
}
Source

Also in JavaScript: