aboutsummaryrefslogtreecommitdiffstats
path: root/src/jsUtils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/jsUtils.ts')
-rw-r--r--src/jsUtils.ts2
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
21export const cleanseJSObject = (data: any | undefined | null) => 21export const cleanseJSObject = (data: any | undefined | null) =>
22 JSON.parse(JSON.stringify(data)); 22 JSON.parse(JSON.stringify(data));
23
24export const isEscKeyPress = (keyCode : Number) => keyCode === 27;