Does charging my early 2015 MacBook Pro all the time damage the battery? I am using my early 2015 MacBook Pro as a desktop by connecting it to an external display, thus, it needs to be plugged in to a charger all the time.

Does charging my early 2015 MacBook Pro all the time damage the battery?
Is it a bad practice?
Apple recommends not leaving it plugged in all the time. This can damage the battery over time, as lithium-ion batteries need to be frequently discharged.

If you are going to use an external monitor, why not buy a desktop computer? MacBooks are made to be portable and have their batteries used.