Did you know you can use one method or another depending on the OS? 😲
#if and #else are compiler directives. In this example, filter() will be compiled only if the OS is iOS 📲
Otherwise, it will be ignored and the else case will compile removeAll() only!💡