diff options
Diffstat (limited to 'src/jsUtils.ts')
-rw-r--r-- | src/jsUtils.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jsUtils.ts b/src/jsUtils.ts index f5b39a000..36d70da25 100644 --- a/src/jsUtils.ts +++ b/src/jsUtils.ts | |||
@@ -20,3 +20,5 @@ export const convertToJSON = (data: string | any | undefined | null) => | |||
20 | 20 | ||
21 | export const cleanseJSObject = (data: any | undefined | null) => | 21 | export const cleanseJSObject = (data: any | undefined | null) => |
22 | JSON.parse(JSON.stringify(data)); | 22 | JSON.parse(JSON.stringify(data)); |
23 | |||
24 | export const isEscKeyPress = (keyCode : Number) => keyCode === 27; | ||