id ()
id
<
T
>
(
x
)
:
T
Identity function.
id
(
1
)
// 1
id
(
null
)
// null
Type Parameters
T
Parameters
x
:
T
Returns
T
Back to index
Identity function.