For function anyStorage(nest, source, name), the label used for the 3rd parameter name is confusing:
the name could refer to the name of the storage as in "does a storage by the specified name exist?"
it could also be the key of the information we are trying to find using this function
Although we could deduce it is the latter from the code samples that use this function, but one could not tell by looking at the function definition alone.
Suggestion function anyStorage(nest, source, key) or function anyStorage(nest, source, data-name)
For
function anyStorage(nest, source, name)
, the label used for the 3rd parameter name is confusing:Although we could deduce it is the latter from the code samples that use this function, but one could not tell by looking at the function definition alone.
Suggestion
function anyStorage(nest, source, key)
orfunction anyStorage(nest, source, data-name)