UNPKG

@stryke/helpers

Version:

A package containing miscellaneous helper functions that are used across many different Storm Software projects.

15 lines (14 loc) 324 B
/** * Returns the input value unchanged. * * @example * ```ts * identity(5); // Returns 5 * identity('hello'); // Returns 'hello' * identity({ key: 'value' }); // Returns { key: 'value' } * ``` * * @param x - The value to be returned. * @returns The input value. */ export declare function identity<T>(x: T): T;