Theoretically, keeping a battery in the middle range is best for ultimate longevity and how long one can keep it running at higher maximum capacity. I've heard with lithium-ion batteries, it might be possible to nearly double the usable capacity, as long as the user can live with something like 25-50 cycles before it's considered "depleted" (typically less than 80% of rated capacity).
You can see how this works with cell phone batteries vs tablet batteries. There's nothing specifically more advanced (both 3.7V using the same electronics and chemical technology) about one over the other other than size. An iPhone battery is rated for 500 cycles before expected depletion. But an iPad is rated for 1000. It's not that hard to figure out. The iPad has a larger battery and they put in more of a "guard range". There's probably a point where it doesn't ultimately improve battery longevity given that part of the capacity has to be used if the battery is to be of any utility.
However, worrying too much about it might not be the best plan either. There are some systems that are programmable to keep the battery within a certain charge range automatically. That would be like setting an EV to limit the maximum charge to something like 80% or 70%. Doing it manually just isn't worth the effort for most users.