@@ -72,7 +72,7 @@ declare module 'immutable' {
72
72
73
73
/**
74
74
* Value equality check with semantics similar to `Object.is`, but treats
75
- * Immutable `Iterable`s as values, equal if the second `Iterable` contains
75
+ * Immutable `Iterable`s as values, equal if the second `Iterable` includes
76
76
* equivalent values.
77
77
*
78
78
* It's used throughout Immutable when checking for equality, including `Map`
@@ -454,7 +454,7 @@ declare module 'immutable' {
454
454
* If any of the values provided to `merge` are not Iterable (would return
455
455
* false for `Immutable.isIterable`) then they are deeply converted via
456
456
* `Immutable.fromJS` before being merged. However, if the value is an
457
- * Iterable but contains non-iterable JS objects or arrays, those nested
457
+ * Iterable but includes non-iterable JS objects or arrays, those nested
458
458
* values will be preserved.
459
459
*
460
460
* var x = Immutable.Map({a: 10, b: 20, c: 30});
@@ -1405,7 +1405,9 @@ declare module 'immutable' {
1405
1405
1406
1406
/**
1407
1407
* True if a value exists within this `Iterable`.
1408
+ * @alias contains
1408
1409
*/
1410
+ includes ( value : V ) : boolean ;
1409
1411
contains ( value : V ) : boolean ;
1410
1412
1411
1413
/**
@@ -1637,7 +1639,7 @@ declare module 'immutable' {
1637
1639
reverse ( ) : /*this*/ Iterable < K , V > ;
1638
1640
1639
1641
/**
1640
- * Returns a new Iterable of the same type which contains the same entries,
1642
+ * Returns a new Iterable of the same type which includes the same entries,
1641
1643
* stably sorted by using a `comparator`.
1642
1644
*
1643
1645
* If a `comparator` is not provided, a default comparator uses `<` and `>`.
@@ -1739,7 +1741,7 @@ declare module 'immutable' {
1739
1741
skipLast ( amount : number ) : /*this*/ Iterable < K , V > ;
1740
1742
1741
1743
/**
1742
- * Returns a new Iterable of the same type which contains entries starting
1744
+ * Returns a new Iterable of the same type which includes entries starting
1743
1745
* from when `predicate` first returns false.
1744
1746
*
1745
1747
* Seq.of('dog','frog','cat','hat','god')
@@ -1753,7 +1755,7 @@ declare module 'immutable' {
1753
1755
) : /*this*/ Iterable < K , V > ;
1754
1756
1755
1757
/**
1756
- * Returns a new Iterable of the same type which contains entries starting
1758
+ * Returns a new Iterable of the same type which includes entries starting
1757
1759
* from when `predicate` first returns true.
1758
1760
*
1759
1761
* Seq.of('dog','frog','cat','hat','god')
@@ -1767,19 +1769,19 @@ declare module 'immutable' {
1767
1769
) : /*this*/ Iterable < K , V > ;
1768
1770
1769
1771
/**
1770
- * Returns a new Iterable of the same type which contains the first `amount`
1772
+ * Returns a new Iterable of the same type which includes the first `amount`
1771
1773
* entries from this Iterable.
1772
1774
*/
1773
1775
take ( amount : number ) : /*this*/ Iterable < K , V > ;
1774
1776
1775
1777
/**
1776
- * Returns a new Iterable of the same type which contains the last `amount`
1778
+ * Returns a new Iterable of the same type which includes the last `amount`
1777
1779
* entries from this Iterable.
1778
1780
*/
1779
1781
takeLast ( amount : number ) : /*this*/ Iterable < K , V > ;
1780
1782
1781
1783
/**
1782
- * Returns a new Iterable of the same type which contains entries from this
1784
+ * Returns a new Iterable of the same type which includes entries from this
1783
1785
* Iterable as long as the `predicate` returns true.
1784
1786
*
1785
1787
* Seq.of('dog','frog','cat','hat','god')
@@ -1793,7 +1795,7 @@ declare module 'immutable' {
1793
1795
) : /*this*/ Iterable < K , V > ;
1794
1796
1795
1797
/**
1796
- * Returns a new Iterable of the same type which contains entries from this
1798
+ * Returns a new Iterable of the same type which includes entries from this
1797
1799
* Iterable as long as the `predicate` returns false.
1798
1800
*
1799
1801
* Seq.of('dog','frog','cat','hat','god').takeUntil(x => x.match(/at/))
@@ -1900,7 +1902,7 @@ declare module 'immutable' {
1900
1902
join ( separator ?: string ) : string ;
1901
1903
1902
1904
/**
1903
- * Returns true if this Iterable contains no values.
1905
+ * Returns true if this Iterable includes no values.
1904
1906
*
1905
1907
* For some lazy `Seq`, `isEmpty` might need to iterate to determine
1906
1908
* emptiness. At most one iteration will occur.
@@ -2040,13 +2042,13 @@ declare module 'immutable' {
2040
2042
// Comparison
2041
2043
2042
2044
/**
2043
- * True if `iter` contains every value in this Iterable.
2045
+ * True if `iter` includes every value in this Iterable.
2044
2046
*/
2045
2047
isSubset ( iter : Iterable < any , V > ) : boolean ;
2046
2048
isSubset ( iter : Array < V > ) : boolean ;
2047
2049
2048
2050
/**
2049
- * True if this Iterable contains every value in `iter`.
2051
+ * True if this Iterable includes every value in `iter`.
2050
2052
*/
2051
2053
isSuperset ( iter : Iterable < any , V > ) : boolean ;
2052
2054
isSuperset ( iter : Array < V > ) : boolean ;
@@ -2239,7 +2241,7 @@ declare module 'immutable' {
2239
2241
* Returns an Iterable of the same type with the provided `iterables`
2240
2242
* interleaved into this iterable.
2241
2243
*
2242
- * The resulting Iterable contains the first item from each, then the
2244
+ * The resulting Iterable includes the first item from each, then the
2243
2245
* second from each, etc.
2244
2246
*
2245
2247
* I.Seq.of(1,2,3).interleave(I.Seq.of('A','B','C'))
0 commit comments