utilscommonidentityOn this pageidentity A function that returns the value passed as an argument as-is. Code 🔗 View source code Interface typescriptconst identity: <T>(value: T) => T; Usage typescriptimport { identity } from '@modern-kit/utils';identity(1); // 1identity('foo'); // 'foo'identity([]); // []