graycoreio/daffodil

View on GitHub
libs/core/src/utils/identity.ts

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * The unary identity function.
 * Returns whatever is passed to it.
 */
export function identity<T>(v: T): T {
  return v;
}