@ztimson/utils 0.21.2 → 0.21.3
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 +8 -0
- package/dist/index.cjs +1397 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +934 -716
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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
|