From e13371fa4a8514fc59fc311eaaf8c634220fec25 Mon Sep 17 00:00:00 2001 From: rowan Date: Thu, 17 Apr 2025 19:16:52 -0500 Subject: [PATCH] add tee --- src/function.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/function.js b/src/function.js index 80dce70..23c6436 100644 --- a/src/function.js +++ b/src/function.js @@ -152,3 +152,8 @@ export const repeat = curry((n, x) => { return results }) +export const tee = curry((f, x) => { + f(x) + return x +}) +