I have a model class which contain these properties:-
class ItemModel:NSObject{
var itemName:String?
var itemPrice:String?
var itemCategory:String?
var isAvailable:Bool?
}
I have an array of type ItemModel Class
var itemArray = [ItemModel]()
I want to filter this array based on itemCategory
NSObject?