diff options
author | Melissa Zhang <mzhang19096@gmail.com> | 2020-06-18 22:16:57 -0700 |
---|---|---|
committer | Melissa Zhang <mzhang19096@gmail.com> | 2020-06-18 22:16:57 -0700 |
commit | b79b5ebfd4f8ea8b4ae793e59f05b5bfe79b9b8a (patch) | |
tree | 3696946f79cd29007e9192fa9a93e5a3a9818a74 /src/fields/ScriptField.ts | |
parent | 8a5c91740f1a8bc4dca2e99bba1da3a1ed1f591b (diff) | |
parent | d8feecd0542670233e6ea87006a89eb00d10a17e (diff) |
merge with master
Diffstat (limited to 'src/fields/ScriptField.ts')
-rw-r--r-- | src/fields/ScriptField.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fields/ScriptField.ts b/src/fields/ScriptField.ts index fc7f9ca80..11b3b0524 100644 --- a/src/fields/ScriptField.ts +++ b/src/fields/ScriptField.ts @@ -161,7 +161,7 @@ export class ComputedField extends ScriptField { Scripting.addGlobal(function getIndexVal(list: any[], index: number) { return list.reduce((p, x, i) => (i <= index && x !== undefined) || p === undefined ? x : p, undefined as any); -}); +}, "returns the value at a given index of a list", "(list: any[], index: number)"); export namespace ComputedField { let useComputed = true; |