It is a bit complicated.
The short answer is yes, it is bad for the battery.
The longer answer is that you have to look at your use pattern, typically with current chargers they don't keep the battery charged at 100% constantly, but let it discharge slightly, in that way the batteries the discharge cycles will extend to around 1000. So now if you do a full discharge once a week it means you will be able to use the battery for close to 20 years if you ignore other factors. So does it really matter?
The longest answer is that Li-polymer batteries have the longest longevity at around 3.9V, which is typically 60% of "full capacity", so if you keep it at that level constantly you can expect up to maybe 5000 discharge cycles. Some devices where it is more important to avoid changing the battery often instead of longer use on single charge, will rather keep full charge at "60%" rather than the typical 4,2V common laptop and cell phones do. That is why long time storage also is kept at around 50-60%.
High and low temps will kill your battery earlier than discharge cycles these days, just run a full discharge at least occasionally (once a month is a good number). If you keep it at a chill room temperature and use original modern charger, I am sure you will end of life the laptop itself before the battery. It will lose capacity, but by a little care and if it is not defective it should last a long time if you keep it connected.
Heavy usage where the laptop battery becomes warm often, that will on the other hand shorten the lifetime quickly, if you discharge it every day, and need to charge it to max, then expect max just a few years before you need to change it.
From what I’ve read, fully discharging the battery doesn’t help. It’s best to keep it around 75-65%.
“Similar to a mechanical device that wears out faster with heavy use, the depth of discharge (DoD) determines the cycle count of the battery. The smaller the discharge (low DoD), the longer the battery will last. If at all possible, avoid full discharges and charge the battery more often between uses. Partial discharge on Li-ion is fine. There is no memory and the battery does not need periodic full discharge cycles to prolong life. The exception may be a periodic calibration of the fuel gauge on a smart battery or intelligent device. (See
BU-603: How to Calibrate a “Smart” Battery)”
What Can the User Do?
Environmental conditions, not cycling alone, govern the longevity of lithium-ion batteries. The worst situation is keeping a fully charged battery at elevated temperatures. Battery packs do not die suddenly, but the runtime gradually shortens as the capacity fades.
Lower charge voltages prolong battery life and electric vehicles and satellites take advantage of this. Similar provisions could also be made for consumer devices, but these are seldom offered; planned obsolescence takes care of this.
A laptop battery could be prolonged by lowering the charge voltage when connected to the AC grid. To make this feature user-friendly, a device should feature a “Long Life” mode that keeps the battery at 4.05V/cell and offers a SoC of about 80 percent. One hour before traveling, the user requests the “Full Capacity” mode to bring the charge to 4.20V/cell.
The question is asked, “Should I disconnect my laptop from the power grid when not in use?” Under normal circumstances this should not be necessary because charging stops when the Li-ion battery is full. A topping charge is only applied when the battery voltage drops to a certain level. Most users do not remove the AC power, and this practice is safe.
Modern laptops run cooler than older models and reported fires are fewer. Always keep the airflow unobstructed when running electric devices with air-cooling on a bed or pillow. A cool laptop extends battery life and safeguards the internal components. Energy Cells, which most consumer products have, should be charged at 1C or less. Avoid so-called
ultra-fast chargers that claim to fully charge Li-ion in less than one hour.
Source:
https://batteryuniversity.com/learn/article/how_to_prolong_lithium_based_batteries