123456789101112131415161718192021222324252627 |
- //
- // NSArray+JZExtension.m
- // JIZHANG
- //
- // Created by jikaipeng on 2017/11/21.
- // Copyright © 2017年 kuxuan. All rights reserved.
- //
- #import "NSArray+JZExtension.h"
- @implementation NSArray (JZExtension)
- - (id)objectAtIndexCheck:(NSUInteger)index
- {
- if (index >= [self count]) {
- return nil;
- }
-
- id value = [self objectAtIndex:index];
- if (value == [NSNull null]) {
- return nil;
- }
- return value;
- }
- @end
|