1 min readMar 26, 2019
The function returns a function, therefore you just need to call that returned function with the missing parameters.
const otherFunction = parse(baseUrl)('preview');
const result = otherFunction(attachement, size);
The function returns a function, therefore you just need to call that returned function with the missing parameters.
const otherFunction = parse(baseUrl)('preview');
const result = otherFunction(attachement, size);
Tech Lead/Software engineer. I am currently working on Legal Technologies and Computational Law. I enjoy opera, philosophy nature and literature.