Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 635 Bytes

File metadata and controls

29 lines (21 loc) · 635 Bytes

javascript-array-set-operations

JS Library file to handle the basic set operation in Javascript Array data.

This libraray is based on https://code.google.com/p/javascriptsets/ with existing bug fixing and improvements.

##Set Operations:

  • Cartessian
  • Complement
  • Difference
  • Intersection
  • Union

##Usage:

  • Include: <script src="../javascript-array-sets.js" type="text/javascript"></script>

  • JS:

var array1= [1, 3, 5];
var array2 = [2, 3, 4, 5, 6];
var array3 = [5, 6, 7, 8];

array1.intersection(array2);
array1.union(array2);

.. find out more by yourself ;)