mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-03 11:34:25 +00:00
- add containsKey: method
This commit is contained in:
1 parent
cb1440d550
commit
e5a37f69dd
1 file changed
+5
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user