|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
370 bytes
|
| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * This method returns the first argument it receives.
|
|---|
| 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 = { 'a': 1 };
|
|---|
| 13 | *
|
|---|
| 14 | * console.log(_.identity(object) === object);
|
|---|
| 15 | * // => true
|
|---|
| 16 | */
|
|---|
| 17 | function identity(value) {
|
|---|
| 18 | return value;
|
|---|
| 19 | }
|
|---|
| 20 |
|
|---|
| 21 | module.exports = identity;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.