jPaq Example - Finding Uniques

Let's say that you have an array of 10 integers in the range of 1 to 10.  How would you remove the duplicates?  Instead of writing a couple of loops, you could just use the uniquify() function which comes with jPaq.  Check it out:

As you can see if you click on the "Execute the Code" button, the uniquify() function makes removing duplicates a breeze.  Let's try a different example.  Let's say you want to determine which letters are used in a sentence.  Again, how would you do it?  Below is an example of how you could approach it:

Once again, the executable example above proves that JavaScript libraries like jPaq, make scripting extremely simple.

Applicable Parts