Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it("indexOf", () => {
expect(["a", "b", "c", "b"][ReadonlyIndexedCollection.indexOf]("b")).toBe(1);
expect(["a", "b", "c", "b"][ReadonlyIndexedCollection.indexOf]("b", 2)).toBe(3);
expect(["a", "b", "c", "b"][ReadonlyIndexedCollection.indexOf]("z")).toBe(-1);
});
it("getAt", () => {
it("indexOf", () => {
expect(new TypedArray([1, 2, 3, 2])[ReadonlyIndexedCollection.indexOf](2)).toBe(1);
expect(new TypedArray([1, 2, 3, 2])[ReadonlyIndexedCollection.indexOf](2, 2)).toBe(3);
expect(new TypedArray([1, 2, 3, 2])[ReadonlyIndexedCollection.indexOf](9)).toBe(-1);
});
it("getAt", () => {