Const
Gets the value of Identity. It is same as the identity function.
Identity
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");
Gets the value of
Identity. It is same as the identity function.