mol_tree2 1.0.1217 → 1.0.1219
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.
- package/node.test.js +3 -0
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.test.js +3 -0
- package/web.test.js.map +1 -1
package/node.test.js
CHANGED
|
@@ -2153,6 +2153,9 @@ var $;
|
|
|
2153
2153
|
sort() {
|
|
2154
2154
|
return $mol_fail(new TypeError(`Mutable sort is forbidden. Use toSorted instead.`));
|
|
2155
2155
|
}
|
|
2156
|
+
indexOf(needle) {
|
|
2157
|
+
return this.findIndex(item => item === needle);
|
|
2158
|
+
}
|
|
2156
2159
|
[Symbol.toPrimitive]() {
|
|
2157
2160
|
return $mol_guid();
|
|
2158
2161
|
}
|