UNPKG

tuna-jslinq

Version:

Linq methods for JavaScript/TypeScript for working with Arrays

9 lines (8 loc) 250 B
describe("FindIndex", function () { it("find", function () { expect(Users.FindIndex(f => f.Age == 55)).toBe(3); }); it("dont find", function () { expect(Users.FindIndex(f => f.Age == 666)).toBe(-1); }); });