var mydata = ["a", "b", "c"];
pv.search(mydata, "a"); // result = 0
pv.search(mydata, "c"); // result = 2
pv.search(mydata, "a"); // result = 0
pv.search(mydata, "c"); // result = 2
pv.transpose
var mydata = [["a", "b", "c"]];//result = [["a", "b", "c"]]
alert(mydata[0]);
pv.transpose(mydata);//result = [["a"], ["b"], ["c"]]
alert(mydata[0]);
alert(mydata[0]);
pv.transpose(mydata);//result = [["a"], ["b"], ["c"]]
alert(mydata[0]);
pv.uniq
var mydata = ["a", "c", "b", "c"];
pv.uniq(mydata); //result = ["a", "c" , "b"]
alert(pv.uniq(mydata));
alert(pv.range(0,10,1)); //[1,2,3,4,5,6,7,8,9,10]
alert(pv.range(0,10,1)); //[0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]
alert(pv.range(10)); //[1,2,3,4,5,6,7,8,9,10]alert(pv.range(0,10,1)); //[0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]
No comments:
Post a Comment