Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
73 lines (59 sloc) 1.13 KB
name usage names inherits properties methods samples
SortedArray
var SortedArray = require("collections/sorted-array");
SortedArray()
SortedArray(values)
SortedArray(values, equals, compare)
SortedArray(values, equals, compare, getDefault)
generic-collection
property-changes
range-changes
observable-object
observable-range
length
has-value
get-value
add-value
delete-value
delete-all
index-of
last-index-of
find-value
find-last-value
push
unshift
pop
shift
slice
splice
swap
reduce
reduce-right
min
max
one
clear
equals
compare
construct-clone
content-equals
content-compare
to-json
var sortedArray = new SortedArray([2, 8, 5]); sortedArray.push(3); sortedArray.toArray(); sortedArray.pop();

A collection of values stored in stable stored order, backed by an array.

--- |

If the given values are an array, the SortedArray takes ownership of that array and modifies it in place. These changes can be observed.

SortedArray flies the isSorted flag.