In exactly similiar case i do it like that:
interface String { endsWith(str); startsWith(str);}
This is just to satisfy the compiler. You implement the methods exactly like in javascript.
Hope that helps.
In exactly similiar case i do it like that:
interface String { endsWith(str); startsWith(str);}
This is just to satisfy the compiler. You implement the methods exactly like in javascript.
Hope that helps.