Merge branch 'develop' of gitlab.verizon.com:BPHV_MIPS/mvm_core into develop
This commit is contained in:
commit
5ba1f724f5
@ -193,3 +193,13 @@ public extension Dictionary {
|
|||||||
return previousObject
|
return previousObject
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public extension Optional where Wrapped == Dictionary<AnyHashable, Any> {
|
||||||
|
|
||||||
|
func dictionaryAdding(key: AnyHashable, value: Any) -> Dictionary<AnyHashable, Any> {
|
||||||
|
var dictionary = self ?? [:]
|
||||||
|
dictionary[key] = value
|
||||||
|
return dictionary
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user