method/identity.ts

/** @module Function */

/**
 * A function that simply returns its input
 * @function
 * @param {*} x
 * @returns {*} the input
 */
export const identity = <T = any>(x: T): T => x