@mikuroxina/mini-fn
    Preparing search index...

    Variable runConst

    run: <T>(x: T) => T = id

    Gets the value of Identity. It is same as the identity function.

    Type Declaration

      • <T>(x: T): T
      • The identity function which returns the passed value as is.

        Examples

        Type Parameters

        • T

        Parameters

        Returns T

        expect(id(2)).toStrictEqual(2);
        expect(id("foo")).toStrictEqual("foo");