util/key-val-to-obj

Convert a (key, value) pair to a { key: value } object

Source:
Parameters:
Name Type Description
key string

The key to use in the returned object

value

The value to assign to the provided key

Returns:
Type:
object

A dictionary object containing the key-value pair