Can you use `[].slice` here? This function is not perf sensitive and it could save a few bytes :)