In my Protractor code, I noticed this strange behavior:
let foo = page.getElementText(element(by.xpath("//wha/t/e/v/e/r"))) console.log(typeof foo)