@JakobOvrum : It's a useability concession. It allows easily piping string indexing functions, without having to make checks after every call. This is how it's done in the module (I already raised this point in a previous pull of indexOf). So it's correct to keep this behavior.

Whether or not we agree with it, is another issue.