aboutsummaryrefslogtreecommitdiff
path: root/src/Utils.ts
diff options
context:
space:
mode:
authorLionel Han <47760119+IGoByJoe@users.noreply.github.com>2020-09-09 17:33:17 -0700
committerLionel Han <47760119+IGoByJoe@users.noreply.github.com>2020-09-09 17:33:17 -0700
commit92d6a7c800c2a76115b9621f0051f344ada8a6fa (patch)
tree4383d128f020f8e44c577ea9d7be19528b61b946 /src/Utils.ts
parent0ca5ee8de08dd79b7e346b46324edf3db5a8405c (diff)
parente650f4dddb6a5f30b8eac0c6097cead28e04cd48 (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into new_audio
Diffstat (limited to 'src/Utils.ts')
-rw-r--r--src/Utils.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Utils.ts b/src/Utils.ts
index 6582e43ef..7dff1ac55 100644
--- a/src/Utils.ts
+++ b/src/Utils.ts
@@ -414,6 +414,8 @@ export function returnTrue() { return true; }
export function returnFalse() { return false; }
+export function returnVal(val1?: number, val2?: number) { return val1 !== undefined ? val1 : val2 !== undefined ? val2 : 0; }
+
export function returnOne() { return 1; }
export function returnZero() { return 0; }