Skip to content
This repository was archived by the owner on Aug 24, 2025. It is now read-only.

Commit fcb8f7e

Browse files
committed
use ReadonlyMap for getExistingElseThrow param.
1 parent f155547 commit fcb8f7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/map/getExistingElseThrow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* // => throws TypeError
1616
*/
1717
const getExistingElseThrow = <TKey, UValue>(
18-
map: Map<TKey, UValue>,
18+
map: ReadonlyMap<TKey, UValue>,
1919
key: TKey
2020
): UValue => {
2121
if (!map.has(key)) {

0 commit comments

Comments
 (0)