diff options
author | bobzel <zzzman@gmail.com> | 2020-09-09 17:32:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-09 17:32:40 -0400 |
commit | 19751f41b642ad68e8029e6ea618232543a02ad8 (patch) | |
tree | 5304aaa2b9ee65a0ff98f061d53bdac5b489679e /src/Utils.ts | |
parent | b8300497de3d496015c719ad59df9b1d6d4b0e56 (diff) | |
parent | 5421bce8982076e671c0ff43c38621b43731ffb0 (diff) |
Merge pull request #697 from browngraphicslab/workingTemplates
Working templates
Diffstat (limited to 'src/Utils.ts')
-rw-r--r-- | src/Utils.ts | 2 |
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; } |