SkillAgentSearch skills...

ObjcCollectionsKeyValueFiltering

NSArray and NSSet additions for Key-Value filtering

Install / Use

/learn @n-b/ObjcCollectionsKeyValueFiltering
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

NSArray and NSSet categories for Key-Value filtering

Demo time :

// Quick and easy search
NSArray * employees = [...]
Person * ceo = [employees firstObjectWithValue:@"timcook@apple.com" forKeyPath:@"email"];

// Keypaths
Person * steve = [employees firstObjectWithValue:[NSNull null] forKeyPath:@"car.licenseplate"]

// Keypath collection operators
NSArray * boxes = [...]
NSArray * emptyBoxes = [boxes filteredArrayWithValue:@0 forKey:@"items.@count"];

More details on my blog.

View on GitHub
GitHub Stars17
CategoryDevelopment
Updated26d ago
Forks3

Languages

Objective-C

Security Score

90/100

Audited on Mar 3, 2026

No findings