Saturday, November 17, 2012

javascript – Check that the array is unique


Possible Duplicate:

Javascript: Determine whether an array contains a value




var thelist = new Array();
function addlist(){
thelist.push(documentgetElementById(\'data\').innerHTML);
}


How can I check that the data I push does not already exsist in array thelist?






Rating: 4 out of 5 based on 4 ratings



The post javascript – Check that the array is unique appeared first on Javascript ASK.






via Javascript ASK http://javascriptask.phpfogapp.com/javascript-check-that-the-array-is-unique.html

No comments:

Post a Comment