<script type="text/javascript" src="SortedArray.js"></script>
<script type="text/javascript">
var arr = sortedArray([12, 2, 30, 5, 10]);
arr.toArray()
var cursor = arr.add(11);
arr.toArray()
cursor.before;
cursor.after;
var arr2 = sortedArray(['a','c','b','d'], function compare(a, b){
return a.charCodeAt(0)-b.charCodeAt(0);
});
arr2.toArray();
arr2.add('e');
arr2.toArray();
</script>
v1.0.0 - Initial commit (23 apr. 2012)
Copyright (c) 2013 Francois-Guillaume Ribreau
Licensed under the MIT license.