From a6cad515b9ee3bfd9de0c48fba01e352ddb0d461 Mon Sep 17 00:00:00 2001 From: dminor Date: Fri, 29 Nov 2024 20:42:54 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20tc39/pro?= =?UTF-8?q?posal-upsert@f78541082920d8517db7a35b21b0529590e56553=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 79aa54f..f840161 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,7 @@ + Similarly, given a `key` and a callback function, the `getOrInsertComputed` method will return the existing val"> @@ -52,7 +52,7 @@

Introduction

Given a key and a value, the getOrInsert method will return the existing value if it exists, or otherwise insert the provided default value and return that value.

-

Similarly, given a key and a callback function, the getOrInsert method will return the existing value if it +

Similarly, given a key and a callback function, the getOrInsertComputed method will return the existing value if it exists, or otherwise insert the returned value of the callback function, and return that value.