How I can knew if the cursor in the begienning of line in codemirror?

I want to knew if the cursor in the beginning of any line in codemirror , I can get the position of the cursor by :
var ch = e.doc.getCursor().ch;

But How I can knew if the cursor in the beginning of any line , I want only t knew if the cursor in the beginning of line I did not care to number of line … any help?

e.getCursor().ch == 0, maybe?