n8n-workflow 1.39.0 → 1.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/Extensions/ArrayExtensions.d.ts +8 -0
  2. package/dist/Extensions/ArrayExtensions.js +210 -61
  3. package/dist/Extensions/ArrayExtensions.js.map +1 -1
  4. package/dist/Extensions/BooleanExtensions.d.ts +0 -10
  5. package/dist/Extensions/BooleanExtensions.js +13 -10
  6. package/dist/Extensions/BooleanExtensions.js.map +1 -1
  7. package/dist/Extensions/DateExtensions.js +2 -2
  8. package/dist/Extensions/DateExtensions.js.map +1 -1
  9. package/dist/Extensions/ExpressionExtension.d.ts +2 -1
  10. package/dist/Extensions/ExpressionExtension.js.map +1 -1
  11. package/dist/Extensions/Extensions.d.ts +16 -4
  12. package/dist/Extensions/NumberExtensions.d.ts +24 -0
  13. package/dist/Extensions/NumberExtensions.js +108 -13
  14. package/dist/Extensions/NumberExtensions.js.map +1 -1
  15. package/dist/Extensions/ObjectExtensions.d.ts +12 -0
  16. package/dist/Extensions/ObjectExtensions.js +111 -19
  17. package/dist/Extensions/ObjectExtensions.js.map +1 -1
  18. package/dist/Extensions/StringExtensions.js +186 -31
  19. package/dist/Extensions/StringExtensions.js.map +1 -1
  20. package/dist/Extensions/index.d.ts +1 -1
  21. package/dist/Interfaces.d.ts +20 -4
  22. package/dist/Interfaces.js +13 -1
  23. package/dist/Interfaces.js.map +1 -1
  24. package/dist/NativeMethods/Array.methods.js +390 -29
  25. package/dist/NativeMethods/Array.methods.js.map +1 -1
  26. package/dist/NativeMethods/Boolean.methods.js +5 -1
  27. package/dist/NativeMethods/Boolean.methods.js.map +1 -1
  28. package/dist/NativeMethods/Number.methods.js +49 -1
  29. package/dist/NativeMethods/Number.methods.js.map +1 -1
  30. package/dist/NativeMethods/String.methods.js +310 -42
  31. package/dist/NativeMethods/String.methods.js.map +1 -1
  32. package/dist/NodeHelpers.d.ts +2 -1
  33. package/dist/NodeHelpers.js +29 -1
  34. package/dist/NodeHelpers.js.map +1 -1
  35. package/dist/NodeParameters/FilterParameter.js +7 -3
  36. package/dist/NodeParameters/FilterParameter.js.map +1 -1
  37. package/dist/WorkflowDataProxy.js +4 -1
  38. package/dist/WorkflowDataProxy.js.map +1 -1
  39. package/dist/build.tsbuildinfo +1 -1
  40. package/dist/index.d.ts +1 -1
  41. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.eventNamesAiNodes = exports.NodeConnectionType = exports.Node = exports.ICredentialsHelper = exports.ICredentials = void 0;
3
+ exports.eventNamesAiNodes = exports.NodeConnectionType = exports.Node = exports.NodeExecutionOutput = exports.ICredentialsHelper = exports.ICredentials = void 0;
4
4
  class ICredentials {
5
5
  constructor(nodeCredentials, type, data) {
6
6
  var _a;
@@ -14,6 +14,17 @@ exports.ICredentials = ICredentials;
14
14
  class ICredentialsHelper {
15
15
  }
16
16
  exports.ICredentialsHelper = ICredentialsHelper;
17
+ class NodeExecutionOutput extends Array {
18
+ constructor(data, hints = []) {
19
+ super();
20
+ this.push(...data);
21
+ this.hints = hints;
22
+ }
23
+ getHints() {
24
+ return this.hints;
25
+ }
26
+ }
27
+ exports.NodeExecutionOutput = NodeExecutionOutput;
17
28
  class Node {
18
29
  }
19
30
  exports.Node = Node;
@@ -45,6 +56,7 @@ exports.eventNamesAiNodes = [
45
56
  'n8n.ai.tool.called',
46
57
  'n8n.ai.vector.store.searched',
47
58
  'n8n.ai.llm.generated',
59
+ 'n8n.ai.llm.error',
48
60
  'n8n.ai.vector.store.populated',
49
61
  ];
50
62
  //# sourceMappingURL=Interfaces.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Interfaces.js","sourceRoot":"","sources":["../src/Interfaces.ts"],"names":[],"mappings":";;;AAwFA,MAAsB,YAAY;IASjC,YAAY,eAAwC,EAAE,IAAY,EAAE,IAAa;;QAChF,IAAI,CAAC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AC,IAAI,GAAG,IAAI,CAAC;IAClB,CAAC;CAOD;AArBD,oCAqBC;AA8DD,MAAsB,kBAAkB;CAuCvC;AAvCD,gDAuCC;AA+rCD,MAAa,mBAAoB,SAAQ,KAAK;IAG7C,YAAY,IAA4B,EAAE,QAA6B,EAAE;QACxE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACpB,CAAC;IAEM,QAAQ;QACd,OAAO,IAAI,CAAC,KAAK,CAAC;IACnB,CAAC;CACD;AAZD,kDAYC;AAyCD,MAAsB,IAAI;CAIzB;AAJD,oBAIC;AA0LD,IAAkB,kBAyBjB;AAzBD,WAAkB,kBAAkB;IAEnC,0CAAoB,CAAA;IAEpB,0CAAoB,CAAA;IAEpB,gDAA0B,CAAA;IAE1B,kDAA4B,CAAA;IAE5B,0DAAoC,CAAA;IAEpC,4CAAsB,CAAA;IAEtB,wDAAkC,CAAA;IAElC,kDAA4B,CAAA;IAE5B,wDAAkC,CAAA;IAElC,wCAAkB,CAAA;IAElB,sDAAgC,CAAA;IAEhC,mCAAa,CAAA;AACd,CAAC,EAzBiB,kBAAkB,kCAAlB,kBAAkB,QAyBnC;AAsVY,QAAA,iBAAiB,GAAG;IAChC,4BAA4B;IAC5B,6BAA6B;IAC7B,uCAAuC;IACvC,6BAA6B;IAC7B,yCAAyC;IACzC,qCAAqC;IACrC,kCAAkC;IAClC,2BAA2B;IAC3B,4BAA4B;IAC5B,oBAAoB;IACpB,8BAA8B;IAC9B,sBAAsB;IACtB,kBAAkB;IAClB,+BAA+B;CACtB,CAAC"}
@@ -7,7 +7,8 @@ exports.arrayMethods = {
7
7
  length: {
8
8
  doc: {
9
9
  name: 'length',
10
- description: 'Returns the number of elements in the Array.',
10
+ description: 'The number of elements in the array',
11
+ examples: [{ example: "['Bob', 'Bill', 'Nat'].length", evaluated: '3' }],
11
12
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/length',
12
13
  returnType: 'number',
13
14
  },
@@ -17,38 +18,154 @@ exports.arrayMethods = {
17
18
  concat: {
18
19
  doc: {
19
20
  name: 'concat',
20
- description: 'Merges two or more arrays into one array.',
21
+ description: 'Joins one or more arrays onto the end of the base array',
22
+ examples: [
23
+ {
24
+ example: "['Nathan', 'Jan'].concat(['Steve', 'Bill'])",
25
+ evaluated: "['Nathan', 'Jan', 'Steve', 'Bill']",
26
+ },
27
+ {
28
+ example: "[5, 4].concat([100, 101], ['a', 'b'])",
29
+ evaluated: "[5, 4, 100, 101, 'a', 'b']",
30
+ },
31
+ ],
21
32
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/concat',
22
33
  returnType: 'Array',
23
34
  args: [
24
- { name: 'arr1', type: 'Array' },
25
- { name: 'arr2', type: 'Array' },
26
- { name: '...' },
27
- { name: 'arrN', type: 'Array' },
35
+ {
36
+ name: 'arrays',
37
+ variadic: true,
38
+ description: 'The arrays to be joined on the end of the base array, in order',
39
+ type: 'Array',
40
+ },
28
41
  ],
29
42
  },
30
43
  },
31
44
  filter: {
32
45
  doc: {
33
46
  name: 'filter',
34
- description: 'Returns an array only containing the elements that pass the test `fn`.',
47
+ description: 'Returns an array with only the elements satisfying a condition. The condition is a function that returns <code>true</code> or <code>false</code>.',
48
+ examples: [
49
+ {
50
+ example: '[12, 33, 16, 40].filter(age => age > 18)',
51
+ evaluated: '[33, 40]',
52
+ description: 'Keep ages over 18 (using arrow function notation)',
53
+ },
54
+ {
55
+ example: "['Nathan', 'Bob', 'Sebastian'].filter(name => name.length < 5)",
56
+ evaluated: "['Bob']",
57
+ description: 'Keep names under 5 letters long (using arrow function notation)',
58
+ },
59
+ {
60
+ example: "['Nathan', 'Bob', 'Sebastian'].filter(function(name) { return name.length < 5 })",
61
+ evaluated: "['Bob']",
62
+ description: 'Or using traditional function notation',
63
+ },
64
+ {
65
+ example: '[1, 7, 3, 10, 5].filter((num, index) => index % 2 !== 0)',
66
+ evaluated: '[7, 10]',
67
+ description: 'Keep numbers at odd indexes',
68
+ },
69
+ ],
35
70
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter',
36
71
  returnType: 'Array',
37
- args: [{ name: 'fn', type: 'Function' }],
72
+ args: [
73
+ {
74
+ name: 'function',
75
+ description: 'A function to run for each array element. If it returns <code>true</code>, the element will be kept. Consider using <a target="_blank" href=”https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions”>arrow function notation</a> to save space.',
76
+ type: 'Function',
77
+ default: 'item => true',
78
+ args: [
79
+ {
80
+ name: 'element',
81
+ description: 'The value of the current element',
82
+ type: 'any',
83
+ },
84
+ {
85
+ name: 'index',
86
+ optional: true,
87
+ description: 'The position of the current element in the array (starting at 0)',
88
+ type: 'number',
89
+ },
90
+ {
91
+ name: 'array',
92
+ optional: true,
93
+ description: 'The array being processed. Rarely needed.',
94
+ type: 'Array',
95
+ },
96
+ {
97
+ name: 'thisValue',
98
+ optional: true,
99
+ description: 'A value passed to the function as its <code>this</code> value. Rarely needed.',
100
+ type: 'any',
101
+ },
102
+ ],
103
+ },
104
+ ],
38
105
  },
39
106
  },
40
107
  find: {
41
108
  doc: {
42
109
  name: 'find',
43
- description: 'Returns the first element in the provided array that passes the test `fn`. If no values satisfy the testing function, `undefined` is returned.',
110
+ description: 'Returns the first element from the array that satisfies the provided condition. The condition is a function that returns <code>true</code> or <code>false</code>. Returns <code>undefined</code> if no matches are found.\n\nIf you need all matching elements, use <code>filter()</code>.',
111
+ examples: [
112
+ {
113
+ example: '[12, 33, 16, 40].find(age => age > 18)',
114
+ evaluated: '33',
115
+ description: 'Find first age over 18 (using arrow function notation)',
116
+ },
117
+ {
118
+ example: "['Nathan', 'Bob', 'Sebastian'].find(name => name.length < 5)",
119
+ evaluated: "'Bob'",
120
+ description: 'Find first name under 5 letters long (using arrow function notation)',
121
+ },
122
+ {
123
+ example: "['Nathan', 'Bob', 'Sebastian'].find(function(name) { return name.length < 5 })",
124
+ evaluated: "'Bob'",
125
+ description: 'Or using traditional function notation',
126
+ },
127
+ ],
44
128
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find',
45
- returnType: 'Array|undefined',
46
- args: [{ name: 'fn', type: 'Function' }],
129
+ returnType: 'Array | undefined',
130
+ args: [
131
+ {
132
+ name: 'function',
133
+ description: 'A function to run for each array element. As soon as it returns <code>true</code>, that element will be returned. Consider using <a target="_blank" href=”https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions”>arrow function notation</a> to save space.',
134
+ type: 'Function',
135
+ default: 'item => true',
136
+ args: [
137
+ {
138
+ name: 'element',
139
+ description: 'The value of the current element',
140
+ type: 'any',
141
+ },
142
+ {
143
+ name: 'index',
144
+ optional: true,
145
+ description: 'The position of the current element in the array (starting at 0)',
146
+ type: 'number',
147
+ },
148
+ {
149
+ name: 'array',
150
+ optional: true,
151
+ description: 'The array being processed. Rarely needed.',
152
+ type: 'Array',
153
+ },
154
+ {
155
+ name: 'thisValue',
156
+ optional: true,
157
+ description: 'A value passed to the function as its <code>this</code> value. Rarely needed.',
158
+ type: 'any',
159
+ },
160
+ ],
161
+ },
162
+ ],
47
163
  },
48
164
  },
49
165
  findIndex: {
50
166
  doc: {
51
167
  name: 'findIndex',
168
+ hidden: true,
52
169
  description: 'Returns the index of the first element in an array that passes the test `fn`. If none are found, -1 is returned.',
53
170
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex',
54
171
  returnType: 'number',
@@ -58,15 +175,17 @@ exports.arrayMethods = {
58
175
  findLast: {
59
176
  doc: {
60
177
  name: 'findLast',
178
+ hidden: true,
61
179
  description: 'Returns the value of the last element that passes the test `fn`.',
62
180
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findLast',
63
- returnType: 'Element|undefined',
181
+ returnType: 'any | undefined',
64
182
  args: [{ name: 'fn', type: 'Function' }],
65
183
  },
66
184
  },
67
185
  findLastIndex: {
68
186
  doc: {
69
187
  name: 'findLastIndex',
188
+ hidden: true,
70
189
  description: 'Returns the index of the last element that satisfies the provided testing function. If none are found, -1 is returned.',
71
190
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findLastIndex',
72
191
  returnType: 'number',
@@ -76,49 +195,142 @@ exports.arrayMethods = {
76
195
  indexOf: {
77
196
  doc: {
78
197
  name: 'indexOf',
79
- description: 'Returns the first index at which a given element can be found in the array, or -1 if it is not present.',
198
+ description: "Returns the position of the first matching element in the array, or -1 if the element isn't found. Positions start at 0.",
199
+ examples: [
200
+ { example: "['Bob', 'Bill', 'Nat'].indexOf('Nat')", evaluated: '2' },
201
+ { example: "['Bob', 'Bill', 'Nat'].indexOf('Nathan')", evaluated: '-1' },
202
+ ],
80
203
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf',
81
204
  returnType: 'number',
82
205
  args: [
83
- { name: 'searchElement', type: 'string|number' },
84
- { name: 'fromIndex?', type: 'number' },
206
+ {
207
+ name: 'element',
208
+ description: 'The value to look for',
209
+ type: 'any',
210
+ },
211
+ {
212
+ name: 'start',
213
+ optional: true,
214
+ description: 'The index to start looking from',
215
+ default: '0',
216
+ type: 'number',
217
+ },
85
218
  ],
86
219
  },
87
220
  },
88
221
  includes: {
89
222
  doc: {
90
223
  name: 'includes',
91
- description: 'Checks if an array includes a certain value among its entries.',
224
+ description: 'Returns <code>true</code> if the array contains the specified element',
225
+ examples: [
226
+ { example: "['Bob', 'Bill', 'Nat'].indexOf('Nat')", evaluated: 'true' },
227
+ { example: "['Bob', 'Bill', 'Nat'].indexOf('Nathan')", evaluated: 'false' },
228
+ ],
92
229
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes',
93
230
  returnType: 'boolean',
94
231
  args: [
95
- { name: 'searchElement', type: 'Element' },
96
- { name: 'fromIndex?', type: 'number' },
232
+ {
233
+ name: 'element',
234
+ description: 'The value to search the array for',
235
+ type: 'any',
236
+ },
237
+ {
238
+ name: 'start',
239
+ optional: true,
240
+ description: 'The index to start looking from',
241
+ default: '0',
242
+ type: 'number',
243
+ },
97
244
  ],
98
245
  },
99
246
  },
100
247
  join: {
101
248
  doc: {
102
249
  name: 'join',
103
- description: 'Returns a string that concatenates all of the elements in an array, separated by `separator`, which defaults to comma.',
250
+ description: 'Merges all elements of the array into a single string, with an optional separator between each element.\n\nThe opposite of <code>String.split()</code>.',
251
+ examples: [
252
+ { example: "['Wind', 'Water', 'Fire'].join(' + ')", evaluated: "'Wind + Water + Fire'" },
253
+ { example: "['Wind', 'Water', 'Fire'].join()", evaluated: "'Wind,Water,Fire'" },
254
+ { example: "['Wind', 'Water', 'Fire'].join('')", evaluated: "'WindWaterFire'" },
255
+ ],
104
256
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join',
105
257
  returnType: 'string',
106
- args: [{ name: 'separator?', type: 'string' }],
258
+ args: [
259
+ {
260
+ name: 'separator',
261
+ optional: true,
262
+ description: 'The character(s) to insert between each element',
263
+ default: "','",
264
+ type: 'string',
265
+ },
266
+ ],
107
267
  },
108
268
  },
109
269
  map: {
110
270
  doc: {
111
271
  name: 'map',
112
- description: 'Returns an array containing the results of calling `fn` on every element.',
272
+ description: 'Creates a new array by applying a function to each element of the original array',
273
+ examples: [
274
+ {
275
+ example: '[12, 33, 16].map(num => num * 2)',
276
+ evaluated: '[24, 66, 32]',
277
+ description: 'Double all numbers (using arrow function notation)',
278
+ },
279
+ {
280
+ example: "['hello', 'old', 'chap'].map(word => word.toUpperCase())",
281
+ evaluated: "['HELLO', 'OLD', 'CHAP']]",
282
+ description: 'Convert elements to uppercase (using arrow function notation)',
283
+ },
284
+ {
285
+ example: "['hello', 'old', 'chap'].map(function(word) { return word.toUpperCase() })",
286
+ evaluated: "['HELLO', 'OLD', 'CHAP']]",
287
+ description: 'Or using traditional function notation',
288
+ },
289
+ ],
113
290
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map',
114
291
  returnType: 'Array',
115
- args: [{ name: 'fn', type: 'Function' }],
292
+ args: [
293
+ {
294
+ name: 'function',
295
+ description: 'A function to run for each array element. In the new array, the output of this function takes the place of the element. Consider using <a target="_blank" href=”https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions”>arrow function notation</a> to save space.',
296
+ type: 'Function',
297
+ default: 'item => item',
298
+ args: [
299
+ {
300
+ name: 'element',
301
+ description: 'The value of the current element',
302
+ type: 'any',
303
+ },
304
+ {
305
+ name: 'index',
306
+ optional: true,
307
+ description: 'The position of the current element in the array (starting at 0)',
308
+ type: 'number',
309
+ },
310
+ {
311
+ name: 'array',
312
+ optional: true,
313
+ description: 'The array being processed. Rarely needed.',
314
+ type: 'Array',
315
+ },
316
+ {
317
+ name: 'thisValue',
318
+ optional: true,
319
+ description: 'A value passed to the function as its <code>this</code> value. Rarely needed.',
320
+ type: 'any',
321
+ },
322
+ ],
323
+ },
324
+ ],
116
325
  },
117
326
  },
118
327
  reverse: {
119
328
  doc: {
120
329
  name: 'reverse',
121
- description: 'Reverses an array and returns it. The first array element now becomes the last, and the last array element becomes the first.',
330
+ description: 'Reverses the order of the elements in the array',
331
+ examples: [
332
+ { example: "['dog', 'bites', 'man'].reverse()", evaluated: "['man', 'bites', 'dog']" },
333
+ ],
122
334
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse',
123
335
  returnType: 'Array',
124
336
  },
@@ -129,28 +341,130 @@ exports.arrayMethods = {
129
341
  description: 'Executes a "reducer" function `fn` on each element of the array. Passing in the return value from the calculation on the preceding element. The final result of running the reducer across all elements of the array is a single value.',
130
342
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce',
131
343
  returnType: 'any',
132
- args: [{ name: 'fn', type: 'Function' }],
344
+ args: [
345
+ {
346
+ name: 'function',
347
+ description: 'A function to run for each array element. Takes the accumulated result and the current element, and returns a new accumulated result. Consider using <a target="_blank" href=”https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions”>arrow function notation</a> to save space.',
348
+ type: 'Function',
349
+ default: 'item => item',
350
+ args: [
351
+ {
352
+ name: 'prevResult',
353
+ description: 'The accumulated result from applying the function to previous elements. When processing the first element, it’s set to <code>initResult</code> (or the first array element if not specified).',
354
+ type: 'any',
355
+ },
356
+ {
357
+ name: 'currentElem',
358
+ description: 'The value in the array currently being processed',
359
+ type: 'any',
360
+ },
361
+ {
362
+ name: 'index',
363
+ optional: true,
364
+ description: 'The position of the current element in the array (starting at 0)',
365
+ type: 'number',
366
+ },
367
+ {
368
+ name: 'array',
369
+ optional: true,
370
+ description: 'The array being processed. Rarely needed.',
371
+ type: 'Array',
372
+ },
373
+ ],
374
+ },
375
+ {
376
+ name: 'initResult',
377
+ optional: true,
378
+ description: "The initial value of the prevResult, used when calling the function on the first array element. When not specified it's set to the first array element, and the first function call is on the second array element instead of the first.",
379
+ type: 'any',
380
+ },
381
+ ],
133
382
  },
134
383
  },
135
384
  slice: {
136
385
  doc: {
137
386
  name: 'slice',
138
- description: 'Returns a section of an Array. `end` defaults to the length of the Array if not given.',
387
+ description: 'Returns a portion of the array, from the <code>start</code> index up to (but not including) the <code>end</code> index. Indexes start at 0.',
388
+ examples: [
389
+ { example: '[1, 2, 3, 4, 5].slice(2, 4)', evaluated: '[3, 4]' },
390
+ { example: '[1, 2, 3, 4, 5].slice(2)', evaluated: '[3, 4, 5]' },
391
+ { example: '[1, 2, 3, 4, 5].slice(-2)', evaluated: '[4, 5]' },
392
+ ],
139
393
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice',
140
394
  returnType: 'Array',
141
395
  args: [
142
- { name: 'start', type: 'number' },
143
- { name: 'end?', type: 'number' },
396
+ {
397
+ name: 'start',
398
+ optional: true,
399
+ description: 'The position to start from. Positions start at 0. Negative numbers count back from the end of the array.',
400
+ default: '0',
401
+ type: 'number',
402
+ },
403
+ {
404
+ name: 'end',
405
+ optional: true,
406
+ description: 'The position to select up to. The element at the end position is not included. Negative numbers select from the end of the array. If omitted, will extract to the end of the array.',
407
+ type: 'number',
408
+ },
144
409
  ],
145
410
  },
146
411
  },
147
412
  sort: {
148
413
  doc: {
149
414
  name: 'sort',
150
- description: 'Returns a sorted array. The default sort order is ascending, built upon converting the elements into strings.',
415
+ description: 'Reorders the elements of the array. For sorting strings alphabetically, no parameter is required. For sorting numbers or Objects, see examples.',
416
+ examples: [
417
+ {
418
+ example: "['d', 'a', 'c', 'b'].sort()",
419
+ evaluated: "['a', 'b', 'c', 'd']",
420
+ description: 'No need for a param when sorting strings',
421
+ },
422
+ {
423
+ example: '[4, 2, 1, 3].sort((a, b) => (a - b))',
424
+ evaluated: '[1, 2, 3, 4]',
425
+ description: 'To sort numbers, you must use a function',
426
+ },
427
+ {
428
+ example: '[4, 2, 1, 3].sort(function(a, b) { return a - b })',
429
+ evaluated: '[1, 2, 3, 4]',
430
+ description: 'Or using traditional function notation',
431
+ },
432
+ { example: 'Sort in reverse alphabetical order' },
433
+ { example: "arr = ['d', 'a', 'c', 'b']" },
434
+ {
435
+ example: 'arr.sort((a, b) => b.localeCompare(a))',
436
+ evaluated: "['d', 'c', 'b', 'a']",
437
+ description: 'Sort in reverse alphabetical order',
438
+ },
439
+ {
440
+ example: "[{name:'Zak'}, {name:'Abe'}, {name:'Bob'}].sort((a, b) => a.name.localeCompare(b.name))",
441
+ evaluated: "[{name:'Abe'}, {name:'Bob'}, {name:'Zak'}]",
442
+ description: 'Sort array of objects by a property',
443
+ },
444
+ ],
151
445
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort',
152
446
  returnType: 'Array',
153
- args: [{ name: 'fn?', type: 'Function' }],
447
+ args: [
448
+ {
449
+ name: 'compare',
450
+ optional: true,
451
+ description: 'A function to compare two array elements and return a number indicating which one comes first:\n<b>Return < 0</b>: <code>a</code> comes before <code>b</code>\n<b>Return 0</b>: <code>a</code> and <code>b</code> are equal (leave order unchanged)\n<b>Return > 0</b>: <code>b</code> comes before <code>a</code>\n\nIf no function is specified, converts all values to strings and compares their character codes.',
452
+ default: '""',
453
+ type: '(a, b) => number',
454
+ args: [
455
+ {
456
+ name: 'a',
457
+ description: 'The first element to compare in the function',
458
+ type: 'any',
459
+ },
460
+ {
461
+ name: 'b',
462
+ description: 'The second element to compare in the function',
463
+ type: 'any',
464
+ },
465
+ ],
466
+ },
467
+ ],
154
468
  },
155
469
  },
156
470
  splice: {
@@ -159,6 +473,7 @@ exports.arrayMethods = {
159
473
  description: 'Changes the contents of an array by removing or replacing existing elements.',
160
474
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice',
161
475
  returnType: 'Array',
476
+ hidden: true,
162
477
  args: [
163
478
  { name: 'start', type: 'number' },
164
479
  { name: 'deleteCount?', type: 'number' },
@@ -171,11 +486,57 @@ exports.arrayMethods = {
171
486
  toString: {
172
487
  doc: {
173
488
  name: 'toString',
489
+ hidden: true,
174
490
  description: 'Returns a string representing the specified array and its elements.',
175
491
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toString',
176
492
  returnType: 'string',
177
493
  },
178
494
  },
495
+ toSpliced: {
496
+ doc: {
497
+ name: 'toSpliced',
498
+ description: 'Adds and/or removes array elements at a given position. \n\nSee also <code>slice()</code> and <code>append()</code>.',
499
+ examples: [
500
+ {
501
+ example: "['Jan', 'Mar'.toSpliced(1, 0, 'Feb')",
502
+ evaluated: "['Jan', 'Feb', 'Mar']",
503
+ description: 'Insert element at index 1',
504
+ },
505
+ {
506
+ example: '["don\'t", "make", "me", "do", "this"].toSpliced(1, 2)',
507
+ evaluated: '["don\'t", "do", "this"]',
508
+ description: 'Delete 2 elements starting at index 1',
509
+ },
510
+ {
511
+ example: '["don\'t", "be", "evil"].toSpliced(1, 2, "eat", "slugs")',
512
+ evaluated: '["don\'t", "eat", "slugs"]',
513
+ description: 'Replace 2 elements starting at index 1',
514
+ },
515
+ ],
516
+ docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toSpliced',
517
+ returnType: 'Array',
518
+ args: [
519
+ {
520
+ name: 'start',
521
+ description: 'The index (position) to add or remove elements at. New elements are inserted before the element at this index. A negative index counts back from the end of the array. ',
522
+ type: 'number',
523
+ },
524
+ {
525
+ name: 'deleteCount',
526
+ optional: true,
527
+ description: 'The number of elements to remove. If omitted, removes all elements from the <code>start</code> index onwards.',
528
+ type: 'number',
529
+ },
530
+ {
531
+ name: 'elements',
532
+ optional: true,
533
+ variadic: true,
534
+ description: 'The elements to be added, in order',
535
+ type: 'any',
536
+ },
537
+ ],
538
+ },
539
+ },
179
540
  },
180
541
  };
181
542
  //# sourceMappingURL=Array.methods.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Array.methods.js","sourceRoot":"","sources":["../../src/NativeMethods/Array.methods.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAAc;IACtC,QAAQ,EAAE,OAAO;IACjB,UAAU,EAAE;QACX,MAAM,EAAE;YACP,GAAG,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,8CAA8C;gBAC3D,MAAM,EACL,+FAA+F;gBAChG,UAAU,EAAE,QAAQ;aACpB;SACD;KACD;IACD,SAAS,EAAE;QACV,MAAM,EAAE;YACP,GAAG,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,2CAA2C;gBACxD,MAAM,EACL,+FAA+F;gBAChG,UAAU,EAAE,OAAO;gBACnB,IAAI,EAAE;oBACL,EAAE,IAAI,EAAE,MAA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,EAAE,IAAI,EAAE,SAAS,EAAE;oBACnC,EAAE,IAAI,EAAE,KAAK,EAAE;oBACf,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;iBACnC;aACD;SACD;QACD,QAAQ,EAAE;YACT,GAAG,EAAE;gBACJ,IAAI,EAAE,UAAU;gBAChB,WAAW,EAAE,qEAAqE;gBAClF,MAAM,EACL,iGAAiG;gBAClG,UAAU,EAAE,QAAQ;aACpB;SACD;KACD;CACD,CAAC"}
1
+ {"version":3,"file":"Array.methods.js","sourceRoot":"","sources":["../../src/NativeMethods/Array.methods.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAAc;IACtC,QAAQ,EAAE,OAAO;IACjB,UAAU,EAAE;QACX,MAAM,EAAE;YACP,GAAG,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,qCAAqC;gBAClD,QAAQ,EAAE,CAAC,EAAE,OAAO,EAAE,+BAA+B,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;gBACxE,MAAM,EACL,+FAA+F;gBAChG,UAAU,EAAE,QAAQ;aACpB;SACD;KACD;IACD,SAAS,EAAE;QACV,MAAM,EAAE;YACP,GAAG,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,yDAAyD;gBACtE,QAAQ,EAAE;oBACT;wBACC,OAAO,EAAE,6CAA6C;wBACtD,SAAS,EAAE,oCAAoC;qBAC/C;oBACD;wBACC,OAAO,EAAE,uCAAuC;wBAChD,SAAS,EAAE,4BAA4B;qBACvC;iBACD;gBACD,MAAM,EACL,+FAA+F;gBAChG,UAAU,EAAE,OAAO;gBACnB,IAAI,EAAE;oBACL;wBACC,IAAI,EAAE,QAAQ;wBACd,QAAQ,EAAE,IAAI;wBACd,WAAW,EAAE,gEAAgE;wBAC7E,IAAI,EAAE,OAAO;qBACb;iBACD;aACD;SACD;QACD,MAAM,EAAE;YACP,GAAG,EAAE;gBACJ,IAAI,EAAE,Q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