I'd prefer to use `slice` with `lastIndexOf` (but I can accept a jsperf case that proves me it's slower)