Spaces:
Sleeping
Sleeping
pythonic-rag-FastAPIReact / frontend /node_modules /@mui /utils /legacy /createChainedFunction /createChainedFunction.js
Download frontend/node_modules/@mui/utils/legacy/createChainedFunction/createChainedFunction.js from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 695 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/%40mui/utils/legacy/createChainedFunction/createChainedFunction.js
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/@mui/utils/legacy/createChainedFunction/createChainedFunction.js
-
curl -L -o createChainedFunction.js https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/%40mui/utils/legacy/createChainedFunction/createChainedFunction.js
695 Bytes
| /** | |
| * Safe chained function. | |
| * | |
| * Will only create a new function if needed, | |
| * otherwise will pass back existing functions or null. | |
| */ | |
| export default function createChainedFunction() { | |
| for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) { | |
| funcs[_key] = arguments[_key]; | |
| } | |
| return funcs.reduce(function (acc, func) { | |
| if (func == null) { | |
| return acc; | |
| } | |
| return function chainedFunction() { | |
| for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { | |
| args[_key2] = arguments[_key2]; | |
| } | |
| acc.apply(this, args); | |
| func.apply(this, args); | |
| }; | |
| }, function () {}); | |
| } |