Accessing members of a jsclass Set in javascript -


how can specific element set in jclass set. there how add not how get. if try

        var oo = new set([2,4,6,8]);     alert("ok?"+oo.get(2)); 

i'v tryed acces array

        var oo = new set([2,4,6,8]);     alert("ok?"+oo[2]); 

both of them failed

docs: http://jsclass.jcoglan.com/set.html

make use of .toarray()

    var oo = new set([2,4,6,8]);      alert("ok?"+oo.toarray()[0]); 

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -