@Daniel-Hug , this is what i tried to say...
@ljharb :+1: 
actually, spec says to throw error for endsWith/startsWith if the argument is null or undefined, but this is not so important for shim...