@newdash/newdash
Version:
javascript/typescript utility library
21 lines (20 loc) • 376 B
TypeScript
/**
* This method returns the first argument it receives.
*
* @ignore
* @private
* @since 5.10.0
* @category Util
* @param value Any value.
* @returns Returns `value`.
* @example
*
* ```js
* var object = { 'a': 1 };
*
* console.log(identity(object) === object);
* // => true
* ```
*/
export declare function identity<T>(value: T): T;
export default identity;