@ztimson/utils 0.21.2 → 0.21.4

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/dist/aset.d.ts CHANGED
@@ -32,6 +32,14 @@ export declare class ASet<T> extends Array {
32
32
  * @return {boolean} True if element was found, false otherwise
33
33
  */
34
34
  has(el: T): boolean;
35
+ /**
36
+ * Find index number of element, or -1 if it doesn't exist. Matches by equality not reference
37
+ *
38
+ * @param {T} search Element to find
39
+ * @param {number} fromIndex Starting index position
40
+ * @return {number} Element index number or -1 if missing
41
+ */
42
+ indexOf(search: T, fromIndex?: number): number;
35
43
  /**
36
44
  * Create list of elements this set has in common with the comparison set
37
45
  * @param {ASet<T>} set Set to compare against