- add containsKey: method

This commit is contained in:
Emmanuel Maillard authored and Francisco Ryan Tolmasky I committed 2010-03-28 15:04:42 -07:00
1 parent cb1440d550
commit e5a37f69dd
1 file changed
+5
+5
View File
@@ -527,6 +527,11 @@
return self.toString();
}
- (BOOL)containsKey:(id)aKey
{
var value = [self objectForKey:aKey];
return ((value !== nil) && (value !== undefined));
}
@end
@implementation CPDictionary (CPCoding)