UNPKG

636 BSource Map (JSON)View Raw
1{"version":3,"file":"constant.js","sources":["../../src/constant.js"],"sourcesContent":["/**\n @function constant\n @desc Wraps non-function variables in a simple return function.\n @param {Array|Number|Object|String} value The value to be returned from the function.\n @example <caption>this</caption>\nconstant(42);\n @example <caption>returns this</caption>\nfunction() {\n return 42;\n}\n*/\nexport default function(value) {\n return function constant() {\n return value;\n };\n}\n"],"names":[],"mappings":"AAAA;;;;;;;;;;;AAWA,eAAe,SAAS,KAAK,EAAE;EAC7B,OAAO,SAAS,QAAQ,GAAG;IACzB,OAAO,KAAK,CAAC;GACd,CAAC;CACH;"}
\No newline at end of file