Skip to content

Commit

Permalink
fixed check bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-surinin committed Nov 12, 2018
1 parent ba3cb5e commit 8d7c9f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/array/reduce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function use(...args: any[]) {
}

function valid(key: string) {
if (typeof key === 'string') {
if (typeof key !== 'string') {
throw new Error(`Resolved key must be a string, actual: value - ${key} type - ${typeof key}`)
}
return key
Expand Down

0 comments on commit 8d7c9f0

Please sign in to comment.