1-liners
Version:
Useful oneliners and shorthand functions
26 lines (23 loc) • 453 B
JavaScript
/**
* @module 1-liners/identity
*
* @description
*
* Returns the value you pass to the function
*
* @example
*
* const identity = require('1-liners/identity');
*
* identity(true); // => true
* identity(1); // => 1
* identity({ foo: 1 }); // => { foo: 1 }
* identity("1-liners"); // => "1-liners"
*
*/
;
exports.__esModule = true;
exports["default"] = function (I) {
return I;
};
module.exports = exports["default"];