UNPKG

recompact

Version:

A set of React high order components based on Rx.

20 lines (18 loc) 421 B
"use strict"; exports.__esModule = true; /** * This method is similar to lodash `identity`. It returns the first argument it receives. * * @static * @category Utilities * @param {*} value Any value * @returns {*} Returns `value` * @see https://lodash.com/docs/master#identity * @example * * identity(Component) === Component */ var identity = function identity(x) { return x; }; exports.default = identity;