UNPKG

pop-has

Version:

Polymorphic has operator for finding whether a collection contains an equivalent value

10 lines (7 loc) 225 B
"use strict"; var has = require("../pop-has"); it("delegates to has methods", function () { var any = {equals: function () {return true}}; expect(has([1], any)).toBe(true); expect(has([], any)).toBe(false); });