From 56c64dd8bda7c52b698f4fd2ff26c3ee58a9a2a4 Mon Sep 17 00:00:00 2001
From: Daniel Thoma
Date: Thu, 2 Nov 2023 23:36:11 +0100
Subject: [PATCH] fix various typos
---
src/index.ts | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/index.ts b/src/index.ts
index 6b2ec3e..845a0e6 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -222,8 +222,8 @@ type SearchableObject = Record | unknown[]
const hasOwnProperty = Object.prototype.hasOwnProperty
/**
- * Retrives a value from an object by dot notation. The value is received by optional chaining,
- * therefore this function returns undefined if a intermediate property is undefined.
+ * Retrieves a value from an object by dot notation. The value is received by optional chaining,
+ * therefore this function returns undefined if an intermediate property is undefined.
*
* @param object - object to get value from
* @param path - path to value
@@ -252,14 +252,14 @@ function getByPath & string>(
}
/**
- * Sets a value in an object by dot notation. If a intermediate property is undefined,
+ * Sets a value in an object by dot notation. If an intermediate property is undefined,
* this function will throw an error.
*
* @param object - object to set value in
* @param path - path to value
* @param value - value to set
*
- * @throws {Error} - if a intermediate property is undefined
+ * @throws {Error} - if an intermediate property is undefined
*
* @privateRemarks
* The intersection between PathEntry and string is necessary for TypeScript to successfully narrow down the type of P based on the user-provided path input.