UNPKG

363 BJavaScriptView Raw
1/**
2 * This method returns the first argument given to it.
3 *
4 * @static
5 * @since 0.1.0
6 * @memberOf _
7 * @category Util
8 * @param {*} value Any value.
9 * @returns {*} Returns `value`.
10 * @example
11 *
12 * var object = { 'user': 'fred' };
13 *
14 * _.identity(object) === object;
15 * // => true
16 */
17function identity(value) {
18 return value;
19}
20
21export default identity;