Samuel Pouyt
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);

--

--

Samuel Pouyt
Samuel Pouyt

Written by Samuel Pouyt

Tech Lead/Software engineer. I am currently working on Legal Technologies and Computational Law. I enjoy opera, philosophy nature and literature.

Responses (1)