diff options
Diffstat (limited to 'src/jsUtils.ts')
-rw-r--r-- | src/jsUtils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsUtils.ts b/src/jsUtils.ts index 31d6a2121..72e8111e6 100644 --- a/src/jsUtils.ts +++ b/src/jsUtils.ts | |||
@@ -9,7 +9,7 @@ export const convertToJSON = (data?: string | any | null) => | |||
9 | export const cleanseJSObject = (data?: any | null) => | 9 | export const cleanseJSObject = (data?: any | null) => |
10 | JSON.parse(JSON.stringify(data)); | 10 | JSON.parse(JSON.stringify(data)); |
11 | 11 | ||
12 | export const isEscKeyPress = (keyCode: number) => keyCode === 27; | 12 | export const isEscKeyPress = (key: string) => key === 'Escape'; |
13 | 13 | ||
14 | export const safeParseInt = (text?: string | number | null) => { | 14 | export const safeParseInt = (text?: string | number | null) => { |
15 | if (text === undefined || text === null) { | 15 | if (text === undefined || text === null) { |