The identity function which returns the passed value as is.
expect(id(2)).toStrictEqual(2);expect(id("foo")).toStrictEqual("foo"); Copy
expect(id(2)).toStrictEqual(2);expect(id("foo")).toStrictEqual("foo");
The identity function which returns the passed value as is.
Examples