UNPKG

rubico

Version:

[a]synchronous functional programming

22 lines (21 loc) 404 B
export = identity; /** * @name identity * * @synopsis * ```coffeescript [specscript] * identity(value any) -> value * ``` * * @description * Pass a value and receive the same value back. * * ```javascript [playground] * import identity from 'https://unpkg.com/rubico/dist/x/identity.es.js' * * console.log( * identity(1), * ) // 1 * ``` */ declare function identity(value: any): any;