All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.lodash.identity.js Maven / Gradle / Ivy

There is a newer version: 3.3.1
Show newest version
/**
 * This method returns the first argument it receives.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Util
 * @param {*} value Any value.
 * @returns {*} Returns `value`.
 * @example
 *
 * var object = { 'a': 1 };
 *
 * console.log(_.identity(object) === object);
 * // => true
 */
function identity(value) {
  return value;
}

module.exports = identity;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy