mol_text_distance 0.0.1318 → 0.0.1320

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
@@ -2737,6 +2737,9 @@ var $;
2737
2737
  sort() {
2738
2738
  return $mol_fail(new TypeError(`Mutable sort is forbidden. Use toSorted instead.`));
2739
2739
  }
2740
+ indexOf(needle) {
2741
+ return this.findIndex(item => item === needle);
2742
+ }
2740
2743
  [Symbol.toPrimitive]() {
2741
2744
  return $mol_guid();
2742
2745
  }