You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the choice function in the following way:
this.squash=hpjs.choice(methods.activation);
However, the choice function returns an object, the documentation makes out as if a random element in the array is returned. Am I misusing the function?
NB: I know that this could be achieved manually, but I am using the library so it makes sense to utilise functions that are available. The manual way could be:
I am using the
choice
function in the following way:However, the choice function returns an object, the documentation makes out as if a random element in the array is returned. Am I misusing the function?
NB: I know that this could be achieved manually, but I am using the library so it makes sense to utilise functions that are available. The manual way could be:
The text was updated successfully, but these errors were encountered: