k-l-lambda's picture
updated node_modules
4cadbaf
raw
history blame contribute delete
278 Bytes
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const asyncCall = (func, ...args) => new Promise((resolve, reject) => func(...args, (err, data) => {
if (err)
reject(err);
else
resolve(data);
}));
exports.default = asyncCall;