immutable 5.0.0 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/immutable.es.js +5930 -0
  2. package/dist/immutable.js +1 -1
  3. package/dist/immutable.min.js +1 -1
  4. package/package.json +1 -1
  5. package/dist/es/Collection.js +0 -79
  6. package/dist/es/CollectionImpl.js +0 -776
  7. package/dist/es/Hash.js +0 -260
  8. package/dist/es/Immutable.js +0 -73
  9. package/dist/es/Iterator.js +0 -106
  10. package/dist/es/List.js +0 -696
  11. package/dist/es/Map.js +0 -820
  12. package/dist/es/Math.js +0 -45
  13. package/dist/es/Operations.js +0 -953
  14. package/dist/es/OrderedMap.js +0 -196
  15. package/dist/es/OrderedSet.js +0 -92
  16. package/dist/es/PairSorting.js +0 -30
  17. package/dist/es/Range.js +0 -178
  18. package/dist/es/Record.js +0 -292
  19. package/dist/es/Repeat.js +0 -133
  20. package/dist/es/Seq.js +0 -401
  21. package/dist/es/Set.js +0 -279
  22. package/dist/es/Stack.js +0 -261
  23. package/dist/es/TrieUtils.js +0 -117
  24. package/dist/es/fromJS.js +0 -74
  25. package/dist/es/functional/get.js +0 -38
  26. package/dist/es/functional/getIn.js +0 -41
  27. package/dist/es/functional/has.js +0 -35
  28. package/dist/es/functional/hasIn.js +0 -32
  29. package/dist/es/functional/merge.js +0 -137
  30. package/dist/es/functional/remove.js +0 -56
  31. package/dist/es/functional/removeIn.js +0 -32
  32. package/dist/es/functional/set.js +0 -52
  33. package/dist/es/functional/setIn.js +0 -32
  34. package/dist/es/functional/update.js +0 -31
  35. package/dist/es/functional/updateIn.js +0 -94
  36. package/dist/es/is.js +0 -108
  37. package/dist/es/methods/asImmutable.js +0 -29
  38. package/dist/es/methods/asMutable.js +0 -31
  39. package/dist/es/methods/deleteIn.js +0 -31
  40. package/dist/es/methods/getIn.js +0 -31
  41. package/dist/es/methods/hasIn.js +0 -31
  42. package/dist/es/methods/merge.js +0 -79
  43. package/dist/es/methods/mergeDeep.js +0 -41
  44. package/dist/es/methods/mergeDeepIn.js +0 -37
  45. package/dist/es/methods/mergeIn.js +0 -36
  46. package/dist/es/methods/setIn.js +0 -31
  47. package/dist/es/methods/toObject.js +0 -36
  48. package/dist/es/methods/update.js +0 -33
  49. package/dist/es/methods/updateIn.js +0 -31
  50. package/dist/es/methods/wasAltered.js +0 -29
  51. package/dist/es/methods/withMutations.js +0 -31
  52. package/dist/es/package.json.js +0 -27
  53. package/dist/es/predicates/isAssociative.js +0 -32
  54. package/dist/es/predicates/isCollection.js +0 -32
  55. package/dist/es/predicates/isImmutable.js +0 -32
  56. package/dist/es/predicates/isIndexed.js +0 -31
  57. package/dist/es/predicates/isKeyed.js +0 -31
  58. package/dist/es/predicates/isList.js +0 -31
  59. package/dist/es/predicates/isMap.js +0 -31
  60. package/dist/es/predicates/isOrdered.js +0 -31
  61. package/dist/es/predicates/isOrderedMap.js +0 -32
  62. package/dist/es/predicates/isOrderedSet.js +0 -32
  63. package/dist/es/predicates/isRecord.js +0 -31
  64. package/dist/es/predicates/isSeq.js +0 -31
  65. package/dist/es/predicates/isSet.js +0 -31
  66. package/dist/es/predicates/isStack.js +0 -31
  67. package/dist/es/predicates/isValueObject.js +0 -33
  68. package/dist/es/toJS.js +0 -54
  69. package/dist/es/utils/arrCopy.js +0 -36
  70. package/dist/es/utils/assertNotInfinite.js +0 -34
  71. package/dist/es/utils/coerceKeyPath.js +0 -40
  72. package/dist/es/utils/deepEqual.js +0 -99
  73. package/dist/es/utils/hasOwnProperty.js +0 -27
  74. package/dist/es/utils/invariant.js +0 -29
  75. package/dist/es/utils/isArrayLike.js +0 -44
  76. package/dist/es/utils/isDataStructure.js +0 -39
  77. package/dist/es/utils/isPlainObj.js +0 -52
  78. package/dist/es/utils/mixin.js +0 -38
  79. package/dist/es/utils/quoteString.js +0 -36
  80. package/dist/es/utils/shallowCopy.js +0 -41
@@ -1,196 +0,0 @@
1
- /**
2
- * @license
3
- * MIT License
4
- *
5
- * Copyright (c) 2014-present, Lee Byron and other contributors.
6
- *
7
- * Permission is hereby granted, free of charge, to any person obtaining a copy
8
- * of this software and associated documentation files (the "Software"), to deal
9
- * in the Software without restriction, including without limitation the rights
10
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- * copies of the Software, and to permit persons to whom the Software is
12
- * furnished to do so, subject to the following conditions:
13
- *
14
- * The above copyright notice and this permission notice shall be included in all
15
- * copies or substantial portions of the Software.
16
- *
17
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- * SOFTWARE.
24
- */
25
- import { KeyedCollection } from './Collection.js';
26
- import { IS_ORDERED_SYMBOL } from './predicates/isOrdered.js';
27
- import { isOrderedMap } from './predicates/isOrderedMap.js';
28
- import { Map, emptyMap } from './Map.js';
29
- import { emptyList } from './List.js';
30
- import { DELETE, NOT_SET, SIZE } from './TrieUtils.js';
31
- import assertNotInfinite from './utils/assertNotInfinite.js';
32
-
33
- var OrderedMap = /*@__PURE__*/(function (Map) {
34
- function OrderedMap(value) {
35
- // eslint-disable-next-line no-constructor-return
36
- return value === undefined || value === null
37
- ? emptyOrderedMap()
38
- : isOrderedMap(value)
39
- ? value
40
- : emptyOrderedMap().withMutations(function (map) {
41
- var iter = KeyedCollection(value);
42
- assertNotInfinite(iter.size);
43
- iter.forEach(function (v, k) { return map.set(k, v); });
44
- });
45
- }
46
-
47
- if ( Map ) OrderedMap.__proto__ = Map;
48
- OrderedMap.prototype = Object.create( Map && Map.prototype );
49
- OrderedMap.prototype.constructor = OrderedMap;
50
-
51
- OrderedMap.of = function of (/*...values*/) {
52
- return this(arguments);
53
- };
54
-
55
- OrderedMap.prototype.toString = function toString () {
56
- return this.__toString('OrderedMap {', '}');
57
- };
58
-
59
- // @pragma Access
60
-
61
- OrderedMap.prototype.get = function get (k, notSetValue) {
62
- var index = this._map.get(k);
63
- return index !== undefined ? this._list.get(index)[1] : notSetValue;
64
- };
65
-
66
- // @pragma Modification
67
-
68
- OrderedMap.prototype.clear = function clear () {
69
- if (this.size === 0) {
70
- return this;
71
- }
72
- if (this.__ownerID) {
73
- this.size = 0;
74
- this._map.clear();
75
- this._list.clear();
76
- this.__altered = true;
77
- return this;
78
- }
79
- return emptyOrderedMap();
80
- };
81
-
82
- OrderedMap.prototype.set = function set (k, v) {
83
- return updateOrderedMap(this, k, v);
84
- };
85
-
86
- OrderedMap.prototype.remove = function remove (k) {
87
- return updateOrderedMap(this, k, NOT_SET);
88
- };
89
-
90
- OrderedMap.prototype.__iterate = function __iterate (fn, reverse) {
91
- var this$1$1 = this;
92
-
93
- return this._list.__iterate(
94
- function (entry) { return entry && fn(entry[1], entry[0], this$1$1); },
95
- reverse
96
- );
97
- };
98
-
99
- OrderedMap.prototype.__iterator = function __iterator (type, reverse) {
100
- return this._list.fromEntrySeq().__iterator(type, reverse);
101
- };
102
-
103
- OrderedMap.prototype.__ensureOwner = function __ensureOwner (ownerID) {
104
- if (ownerID === this.__ownerID) {
105
- return this;
106
- }
107
- var newMap = this._map.__ensureOwner(ownerID);
108
- var newList = this._list.__ensureOwner(ownerID);
109
- if (!ownerID) {
110
- if (this.size === 0) {
111
- return emptyOrderedMap();
112
- }
113
- this.__ownerID = ownerID;
114
- this.__altered = false;
115
- this._map = newMap;
116
- this._list = newList;
117
- return this;
118
- }
119
- return makeOrderedMap(newMap, newList, ownerID, this.__hash);
120
- };
121
-
122
- return OrderedMap;
123
- }(Map));
124
-
125
- OrderedMap.isOrderedMap = isOrderedMap;
126
-
127
- OrderedMap.prototype[IS_ORDERED_SYMBOL] = true;
128
- OrderedMap.prototype[DELETE] = OrderedMap.prototype.remove;
129
-
130
- function makeOrderedMap(map, list, ownerID, hash) {
131
- var omap = Object.create(OrderedMap.prototype);
132
- omap.size = map ? map.size : 0;
133
- omap._map = map;
134
- omap._list = list;
135
- omap.__ownerID = ownerID;
136
- omap.__hash = hash;
137
- omap.__altered = false;
138
- return omap;
139
- }
140
-
141
- var EMPTY_ORDERED_MAP;
142
- function emptyOrderedMap() {
143
- return (
144
- EMPTY_ORDERED_MAP ||
145
- (EMPTY_ORDERED_MAP = makeOrderedMap(emptyMap(), emptyList()))
146
- );
147
- }
148
-
149
- function updateOrderedMap(omap, k, v) {
150
- var map = omap._map;
151
- var list = omap._list;
152
- var i = map.get(k);
153
- var has = i !== undefined;
154
- var newMap;
155
- var newList;
156
- if (v === NOT_SET) {
157
- // removed
158
- if (!has) {
159
- return omap;
160
- }
161
- if (list.size >= SIZE && list.size >= map.size * 2) {
162
- newList = list.filter(function (entry, idx) { return entry !== undefined && i !== idx; });
163
- newMap = newList
164
- .toKeyedSeq()
165
- .map(function (entry) { return entry[0]; })
166
- .flip()
167
- .toMap();
168
- if (omap.__ownerID) {
169
- newMap.__ownerID = newList.__ownerID = omap.__ownerID;
170
- }
171
- } else {
172
- newMap = map.remove(k);
173
- newList = i === list.size - 1 ? list.pop() : list.set(i, undefined);
174
- }
175
- } else if (has) {
176
- if (v === list.get(i)[1]) {
177
- return omap;
178
- }
179
- newMap = map;
180
- newList = list.set(i, [k, v]);
181
- } else {
182
- newMap = map.set(k, list.size);
183
- newList = list.set(list.size, [k, v]);
184
- }
185
- if (omap.__ownerID) {
186
- omap.size = newMap.size;
187
- omap._map = newMap;
188
- omap._list = newList;
189
- omap.__hash = undefined;
190
- omap.__altered = true;
191
- return omap;
192
- }
193
- return makeOrderedMap(newMap, newList);
194
- }
195
-
196
- export { OrderedMap, emptyOrderedMap };
@@ -1,92 +0,0 @@
1
- /**
2
- * @license
3
- * MIT License
4
- *
5
- * Copyright (c) 2014-present, Lee Byron and other contributors.
6
- *
7
- * Permission is hereby granted, free of charge, to any person obtaining a copy
8
- * of this software and associated documentation files (the "Software"), to deal
9
- * in the Software without restriction, including without limitation the rights
10
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- * copies of the Software, and to permit persons to whom the Software is
12
- * furnished to do so, subject to the following conditions:
13
- *
14
- * The above copyright notice and this permission notice shall be included in all
15
- * copies or substantial portions of the Software.
16
- *
17
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- * SOFTWARE.
24
- */
25
- import { KeyedCollection, SetCollection } from './Collection.js';
26
- import { IS_ORDERED_SYMBOL } from './predicates/isOrdered.js';
27
- import { isOrderedSet } from './predicates/isOrderedSet.js';
28
- import { IndexedCollectionPrototype } from './CollectionImpl.js';
29
- import { Set } from './Set.js';
30
- import { emptyOrderedMap } from './OrderedMap.js';
31
- import assertNotInfinite from './utils/assertNotInfinite.js';
32
-
33
- var OrderedSet = /*@__PURE__*/(function (Set) {
34
- function OrderedSet(value) {
35
- // eslint-disable-next-line no-constructor-return
36
- return value === undefined || value === null
37
- ? emptyOrderedSet()
38
- : isOrderedSet(value)
39
- ? value
40
- : emptyOrderedSet().withMutations(function (set) {
41
- var iter = SetCollection(value);
42
- assertNotInfinite(iter.size);
43
- iter.forEach(function (v) { return set.add(v); });
44
- });
45
- }
46
-
47
- if ( Set ) OrderedSet.__proto__ = Set;
48
- OrderedSet.prototype = Object.create( Set && Set.prototype );
49
- OrderedSet.prototype.constructor = OrderedSet;
50
-
51
- OrderedSet.of = function of (/*...values*/) {
52
- return this(arguments);
53
- };
54
-
55
- OrderedSet.fromKeys = function fromKeys (value) {
56
- return this(KeyedCollection(value).keySeq());
57
- };
58
-
59
- OrderedSet.prototype.toString = function toString () {
60
- return this.__toString('OrderedSet {', '}');
61
- };
62
-
63
- return OrderedSet;
64
- }(Set));
65
-
66
- OrderedSet.isOrderedSet = isOrderedSet;
67
-
68
- var OrderedSetPrototype = OrderedSet.prototype;
69
- OrderedSetPrototype[IS_ORDERED_SYMBOL] = true;
70
- OrderedSetPrototype.zip = IndexedCollectionPrototype.zip;
71
- OrderedSetPrototype.zipWith = IndexedCollectionPrototype.zipWith;
72
- OrderedSetPrototype.zipAll = IndexedCollectionPrototype.zipAll;
73
-
74
- OrderedSetPrototype.__empty = emptyOrderedSet;
75
- OrderedSetPrototype.__make = makeOrderedSet;
76
-
77
- function makeOrderedSet(map, ownerID) {
78
- var set = Object.create(OrderedSetPrototype);
79
- set.size = map ? map.size : 0;
80
- set._map = map;
81
- set.__ownerID = ownerID;
82
- return set;
83
- }
84
-
85
- var EMPTY_ORDERED_SET;
86
- function emptyOrderedSet() {
87
- return (
88
- EMPTY_ORDERED_SET || (EMPTY_ORDERED_SET = makeOrderedSet(emptyOrderedMap()))
89
- );
90
- }
91
-
92
- export { OrderedSet };
@@ -1,30 +0,0 @@
1
- /**
2
- * @license
3
- * MIT License
4
- *
5
- * Copyright (c) 2014-present, Lee Byron and other contributors.
6
- *
7
- * Permission is hereby granted, free of charge, to any person obtaining a copy
8
- * of this software and associated documentation files (the "Software"), to deal
9
- * in the Software without restriction, including without limitation the rights
10
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- * copies of the Software, and to permit persons to whom the Software is
12
- * furnished to do so, subject to the following conditions:
13
- *
14
- * The above copyright notice and this permission notice shall be included in all
15
- * copies or substantial portions of the Software.
16
- *
17
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- * SOFTWARE.
24
- */
25
- var PairSorting = {
26
- LeftThenRight: -1,
27
- RightThenLeft: +1,
28
- };
29
-
30
- export { PairSorting };
package/dist/es/Range.js DELETED
@@ -1,178 +0,0 @@
1
- /**
2
- * @license
3
- * MIT License
4
- *
5
- * Copyright (c) 2014-present, Lee Byron and other contributors.
6
- *
7
- * Permission is hereby granted, free of charge, to any person obtaining a copy
8
- * of this software and associated documentation files (the "Software"), to deal
9
- * in the Software without restriction, including without limitation the rights
10
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- * copies of the Software, and to permit persons to whom the Software is
12
- * furnished to do so, subject to the following conditions:
13
- *
14
- * The above copyright notice and this permission notice shall be included in all
15
- * copies or substantial portions of the Software.
16
- *
17
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- * SOFTWARE.
24
- */
25
- import { wrapIndex, wholeSlice, resolveBegin, resolveEnd } from './TrieUtils.js';
26
- import { IndexedSeq } from './Seq.js';
27
- import { Iterator, iteratorDone, iteratorValue } from './Iterator.js';
28
- import invariant from './utils/invariant.js';
29
- import deepEqual from './utils/deepEqual.js';
30
-
31
- /**
32
- * Returns a lazy seq of nums from start (inclusive) to end
33
- * (exclusive), by step, where start defaults to 0, step to 1, and end to
34
- * infinity. When start is equal to end, returns empty list.
35
- */
36
- var Range = /*@__PURE__*/(function (IndexedSeq) {
37
- function Range(start, end, step) {
38
- if ( step === void 0 ) step = 1;
39
-
40
- if (!(this instanceof Range)) {
41
- // eslint-disable-next-line no-constructor-return
42
- return new Range(start, end, step);
43
- }
44
- invariant(step !== 0, 'Cannot step a Range by 0');
45
- invariant(
46
- start !== undefined,
47
- 'You must define a start value when using Range'
48
- );
49
- invariant(
50
- end !== undefined,
51
- 'You must define an end value when using Range'
52
- );
53
-
54
- step = Math.abs(step);
55
- if (end < start) {
56
- step = -step;
57
- }
58
- this._start = start;
59
- this._end = end;
60
- this._step = step;
61
- this.size = Math.max(0, Math.ceil((end - start) / step - 1) + 1);
62
- if (this.size === 0) {
63
- if (EMPTY_RANGE) {
64
- // eslint-disable-next-line no-constructor-return
65
- return EMPTY_RANGE;
66
- }
67
- // eslint-disable-next-line @typescript-eslint/no-this-alias
68
- EMPTY_RANGE = this;
69
- }
70
- }
71
-
72
- if ( IndexedSeq ) Range.__proto__ = IndexedSeq;
73
- Range.prototype = Object.create( IndexedSeq && IndexedSeq.prototype );
74
- Range.prototype.constructor = Range;
75
-
76
- Range.prototype.toString = function toString () {
77
- if (this.size === 0) {
78
- return 'Range []';
79
- }
80
- return (
81
- 'Range [ ' +
82
- this._start +
83
- '...' +
84
- this._end +
85
- (this._step !== 1 ? ' by ' + this._step : '') +
86
- ' ]'
87
- );
88
- };
89
-
90
- Range.prototype.get = function get (index, notSetValue) {
91
- return this.has(index)
92
- ? this._start + wrapIndex(this, index) * this._step
93
- : notSetValue;
94
- };
95
-
96
- Range.prototype.includes = function includes (searchValue) {
97
- var possibleIndex = (searchValue - this._start) / this._step;
98
- return (
99
- possibleIndex >= 0 &&
100
- possibleIndex < this.size &&
101
- possibleIndex === Math.floor(possibleIndex)
102
- );
103
- };
104
-
105
- Range.prototype.slice = function slice (begin, end) {
106
- if (wholeSlice(begin, end, this.size)) {
107
- return this;
108
- }
109
- begin = resolveBegin(begin, this.size);
110
- end = resolveEnd(end, this.size);
111
- if (end <= begin) {
112
- return new Range(0, 0);
113
- }
114
- return new Range(
115
- this.get(begin, this._end),
116
- this.get(end, this._end),
117
- this._step
118
- );
119
- };
120
-
121
- Range.prototype.indexOf = function indexOf (searchValue) {
122
- var offsetValue = searchValue - this._start;
123
- if (offsetValue % this._step === 0) {
124
- var index = offsetValue / this._step;
125
- if (index >= 0 && index < this.size) {
126
- return index;
127
- }
128
- }
129
- return -1;
130
- };
131
-
132
- Range.prototype.lastIndexOf = function lastIndexOf (searchValue) {
133
- return this.indexOf(searchValue);
134
- };
135
-
136
- Range.prototype.__iterate = function __iterate (fn, reverse) {
137
- var size = this.size;
138
- var step = this._step;
139
- var value = reverse ? this._start + (size - 1) * step : this._start;
140
- var i = 0;
141
- while (i !== size) {
142
- if (fn(value, reverse ? size - ++i : i++, this) === false) {
143
- break;
144
- }
145
- value += reverse ? -step : step;
146
- }
147
- return i;
148
- };
149
-
150
- Range.prototype.__iterator = function __iterator (type, reverse) {
151
- var size = this.size;
152
- var step = this._step;
153
- var value = reverse ? this._start + (size - 1) * step : this._start;
154
- var i = 0;
155
- return new Iterator(function () {
156
- if (i === size) {
157
- return iteratorDone();
158
- }
159
- var v = value;
160
- value += reverse ? -step : step;
161
- return iteratorValue(type, reverse ? size - ++i : i++, v);
162
- });
163
- };
164
-
165
- Range.prototype.equals = function equals (other) {
166
- return other instanceof Range
167
- ? this._start === other._start &&
168
- this._end === other._end &&
169
- this._step === other._step
170
- : deepEqual(this, other);
171
- };
172
-
173
- return Range;
174
- }(IndexedSeq));
175
-
176
- var EMPTY_RANGE;
177
-
178
- export { Range };