Google Apps Script - Get row number by cell value

Here is a Google Apps Script snippet I just wrote to manipulate Google spreadsheet data. It will return the row number by cell value: