moltres-utils
Version:
Utils for Moltres apps
39 lines (33 loc) • 790 B
JavaScript
require("core-js/modules/es6.object.define-property");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
// import curry from './curry'
// TODO BRN: Only add support for placeholders, do not curry
/**
* A function that does nothing but return the parameter supplied to it. Good as a default or placeholder function.
*
* @function
* @since v0.0.10
* @category common
* @param {*} value The value to return.
* @return {*} The input value.
* @example
*
* identity(1)
* //=> 1
*
* const obj = {}
* identity(obj) === obj
* //=> true
* identity()
* //=> undefined
*/
var identity = function identity(value) {
return value;
};
var _default = identity;
exports.default = _default;
//# sourceMappingURL=identity.js.map
;