Buckets:
ktongue/docker_container / fem_tutos /node_modules /@mui /utils /esm /createChainedFunction /createChainedFunction.js
| /** | |
| * Safe chained function. | |
| * | |
| * Will only create a new function if needed, | |
| * otherwise will pass back existing functions or null. | |
| */ | |
| export default function createChainedFunction(...funcs) { | |
| return funcs.reduce((acc, func) => { | |
| if (func == null) { | |
| return acc; | |
| } | |
| return function chainedFunction(...args) { | |
| acc.apply(this, args); | |
| func.apply(this, args); | |
| }; | |
| }, () => {}); | |
| } |
Xet Storage Details
- Size:
- 414 Bytes
- Xet hash:
- 08b95625d9dbe197ae180ac39d7bbc8c47e9dc014be527f8cae502c4635fdc40
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.