UNPKG

tamda

Version:

Practical functional programming library for TypeScript

8 lines (7 loc) 154 B
/** * Returns the `item` itself. * @param item Item to be returned by function call. */ export function identity<T>(item: T) { return item; }