ryde/source/logic/helpers/call.ts

25 lines
257 B
TypeScript
Raw Permalink Normal View History

2026-03-06 08:37:53 +01:00
namespace lib_call
{
/**
*/
export function convey
(
value : any,
functions : Array<Function>
) : any
{
let result : any = value;
functions.forEach
(
function_ =>
{
result = function_(result);
}
);
return result;
}
}