aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index e6e85b59c..3063170d3 100644
--- a/README.md
+++ b/README.md
@@ -2578,6 +2578,8 @@ console.log(ls); // null
`Bun.peek` is a utility function that lets you read a promise's result without `await` or `.then`, but only if the promise has already fulfilled or rejected.
+This function was added in Bun v0.2.2.
+
```ts
import { peek } from "bun";