Extracts a named value from a dictionary. If the dictionary does not contain the given key, then defaultValue is returned, unless it is null.
Usage | Returns |
---|---|
Dictionary.get(key, defaultValue) | Object |
Argument | Type | Details |
---|---|---|
this: dictionary | Dictionary | |
key | String | |
defaultValue | Object, default: null |
JavaScript
// Your example goes here!
Python
# Your example goes here!