Use it any way you want.
Using an immutable constant from two functions is not in any way problematic or impure.
A problem arises if one of the functions mutates the value. In JS this can be prevented by declaring the binding with const and by using Object.freeze to make the value immutable.