Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 17ac6b7

Browse filesBrowse files
committed
lint
1 parent b057b1b commit 17ac6b7
Copy full SHA for 17ac6b7

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎index.js

Copy file name to clipboardExpand all lines: index.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ const isUnsafeKey = key => {
1919

2020
const validateKey = key => {
2121
if (typeof key !== 'string' && typeof key !== 'number') {
22-
key = String(key)
22+
key = String(key);
2323
}
24+
2425
if (isUnsafeKey(key)) {
2526
throw new Error(`Cannot set unsafe key: "${key}"`);
2627
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.