-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
this part is not safe. ps: how about use 'subscript' instead of separatedKeys
var object: AnyObject = dictionary
key.separatedKeys.enumerated().forEach { idx, separatedKey in
if let index = Int(separatedKey) {
let array = object as! Array<AnyObject>
object = array[index]
} else {
let dictionary = object as! NSDictionary
object = dictionary[separatedKey]! as AnyObject
}
}
Metadata
Metadata
Assignees
Labels
No labels