UNPKG

@skazka/aws

Version:
8 lines (5 loc) 211 B
const factory = (body) => (handler = null, options = {}) => { const method = (func) => async (...args) => body(func, options, args); return handler ? method(handler) : method; }; module.exports = factory;