Describe the problem
I find createContext really useful but it only provides get/set functions equivalent to getContext and setContext, while missing the hasContext function. This can be painful because there is no way to check if a context exists if the key is not available. Also trying to get it will throw an error.
Describe the proposed solution
Providing a third function for createContext to return a [get, set, has] triplet.
Importance
nice to have
Describe the problem
I find
createContextreally useful but it only providesget/setfunctions equivalent togetContextandsetContext, while missing thehasContextfunction. This can be painful because there is no way to check if a context exists if the key is not available. Also trying to get it will throw an error.Describe the proposed solution
Providing a third function for
createContextto return a[get, set, has]triplet.Importance
nice to have