use directories for structure

This commit is contained in:
s2
2020-05-26 10:37:57 +02:00
parent 66580d4847
commit ae4aaf2668
1287 changed files with 92093 additions and 13113 deletions

View File

@@ -1,10 +1,8 @@
'use strict';
module.exports = function tryCatch(fn) {
var args = [].slice.call(arguments, 1);
module.exports = (fn, ...args) => {
try {
return [null, fn.apply(null, args)];
return [null, fn(...args)];
} catch(e) {
return [e];
}