Unique Values Get In Jquery array
At present, i we are going to present you distinctive values get in jquery array. This text provides you with easy instance of distinctive values get in jquery array. you’ll study distinctive values get in jquery array. So let’s observe few step to create instance of distinctive values get in jquery array.
Preview:
Instance
<!DOCTYPE html> <html> <head> <title>Distinctive Values Get In Jquery array</title> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> </head> <physique> <script kind="textual content/javascript"> var websites = ["mohan","rakesh","krishan","mohan"]; var uniqueSites = websites.filter(operate(merchandise, i, websites) { return i == websites.indexOf(merchandise); }); console.log(uniqueSites); </script> </physique> </html>
Komentar
Posting Komentar