Skip to content

Commit b73e9b1

Browse files
committed
remove docs about toArray and toVector behaving differently on IndexedSequence
1 parent 7c71505 commit b73e9b1

File tree

5 files changed

+12
-56
lines changed

5 files changed

+12
-56
lines changed

dist/Immutable.d.ts

-14
Original file line numberDiff line numberDiff line change
@@ -718,20 +718,6 @@ declare module 'immutable' {
718718
*/
719719
splice(index: number, removeNum: number, ...values: any[]): IndexedSequence<T>;
720720

721-
/**
722-
* When IndexedSequence is converted to an array, the index keys are
723-
* maintained. This differs from the behavior of Sequence which
724-
* simply makes a dense array of all values.
725-
* @override
726-
*/
727-
toArray(): Array<T>;
728-
729-
/**
730-
* This has the same altered behavior as `toArray`.
731-
* @override
732-
*/
733-
toVector(): Vector<T>;
734-
735721
/**
736722
* Returns the value associated with the provided index, or notSetValue if
737723
* the index is beyond the bounds of the sequence.

dist/Immutable.js

-8
Original file line numberDiff line numberDiff line change
@@ -620,14 +620,6 @@ var $IndexedSequence = IndexedSequence;
620620
toString: function() {
621621
return this.__toString('Seq [', ']');
622622
},
623-
toArray: function() {
624-
assertNotInfinite(this.length);
625-
var array = new Array(this.length || 0);
626-
array.length = this.forEach((function(v, i) {
627-
array[i] = v;
628-
}));
629-
return array;
630-
},
631623
toKeyedSeq: function() {
632624
return new KeyedIndexedSequence(this);
633625
},

0 commit comments

Comments
 (0)