ryde/source/logic/helpers/call.ts
2026-03-06 08:37:53 +01:00

25 lines
257 B
TypeScript

namespace lib_call
{
/**
*/
export function convey
(
value : any,
functions : Array<Function>
) : any
{
let result : any = value;
functions.forEach
(
function_ =>
{
result = function_(result);
}
);
return result;
}
}