diff options
author | bobzel <zzzman@gmail.com> | 2020-06-16 21:17:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-16 21:17:55 -0400 |
commit | 9ead194ead1e603083945740e2b6e76130f23e18 (patch) | |
tree | 6e600ff70138e542de490e76fc907601be14d799 /src/fields/ScriptField.ts | |
parent | 4a0332994b38c8910077e6cc711e9e78c2964b67 (diff) | |
parent | 3afdfa11e35bcb73dd4a871e5e4489b0dd3a3c95 (diff) |
Merge pull request #366 from browngraphicslab/script_documents
Script documents
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; |