UNPKG
tamda
Version:
latest (1.0.5)
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Practical functional programming library for TypeScript
github.com/rabelloo/tamda
rabelloo/tamda
tamda
/
src
/
function
/
identity.ts
8 lines
(7 loc)
•
154 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
/** * Returns the `item` itself. *
@param
item Item to be returned by function call. */
export
function
identity
<
T
>(
item: T
)
{
return
item; }