mol_regexp 0.0.1661 → 0.0.1662

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
@@ -2979,6 +2979,9 @@ var $;
2979
2979
  sort() {
2980
2980
  return $mol_fail(new TypeError(`Mutable sort is forbidden. Use toSorted instead.`));
2981
2981
  }
2982
+ indexOf(needle) {
2983
+ return this.findIndex(item => item === needle);
2984
+ }
2982
2985
  [Symbol.toPrimitive]() {
2983
2986
  return $mol_guid();
2984
2987
  }