
The ma function stands for make async. It takes a function and returns a function that returns a promise.
import { ma } from '@aracna/core';
(async () => {
let add, result;
add = ma((a, b) => a + b);
result = add(1, 2);
// will log Promise
console.log(result);
// will log 3
console.log(await result);
})();