Plugged in vs not plugged in
Is it ok to use my macbook air plugged in when I am at home watching movies or while doing other more battery demanding stuff and then plugging it out over night and letting it sleep on battery power? Does this on and of cycle of plugging and unplugging damage the battery in any way, damage in the sense of losing capacity and waring faster than usual ?
MacBook Air (13-inch, Early 2015), OS X El Capitan (10.11.6)