Prevent click on TD next to image

Prevent click on TD next to image

I'm using this to prevent click on image:

  1. if (e.target.nodeName === "IMG") return;

How do I do the same for the TD Cell next to IMG?
The next cell has only text in it.