Function identity

  • This method returns the first argument it receives.

    Type Parameters

    • Value

    Parameters

    Returns Value

    The value.

    Since

    1.0.0

    Example

    const foo = { bar: "baz" };

    console.log(identity(foo) === foo); // true