mol_mutable 0.0.1044 → 0.0.1045

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 CHANGED
@@ -2714,6 +2714,9 @@ var $;
2714
2714
  sort() {
2715
2715
  return $mol_fail(new TypeError(`Mutable sort is forbidden. Use toSorted instead.`));
2716
2716
  }
2717
+ indexOf(needle) {
2718
+ return this.findIndex(item => item === needle);
2719
+ }
2717
2720
  [Symbol.toPrimitive]() {
2718
2721
  return $mol_guid();
2719
2722
  }