mol_jsx_lib 0.0.1425 → 0.0.1426
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
|
@@ -4671,6 +4671,9 @@ var $;
|
|
|
4671
4671
|
sort() {
|
|
4672
4672
|
return $mol_fail(new TypeError(`Mutable sort is forbidden. Use toSorted instead.`));
|
|
4673
4673
|
}
|
|
4674
|
+
indexOf(needle) {
|
|
4675
|
+
return this.findIndex(item => item === needle);
|
|
4676
|
+
}
|
|
4674
4677
|
[Symbol.toPrimitive]() {
|
|
4675
4678
|
return $mol_guid();
|
|
4676
4679
|
}
|