pacc 8.1.8 → 8.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pacc",
3
- "version": "8.1.8",
3
+ "version": "8.2.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -240,5 +240,10 @@ export const globals = {
240
240
  uppercase: a => a.toUpperCase(),
241
241
  lowercase: a => a.toLowerCase(),
242
242
  substring: (s, a, b) => s.substring(a, b),
243
- length: s => s.length
243
+ length: s => s.length,
244
+ join: (separator, ...args) =>
245
+ args
246
+ .map(item => (item instanceof Iterator ? Array.from(item) : item))
247
+ .flat()
248
+ .join(separator)
244
249
  };
@@ -16,4 +16,5 @@ export namespace globals {
16
16
  export function lowercase(a: any): any;
17
17
  export function substring(s: any, a: any, b: any): any;
18
18
  export function length(s: any): any;
19
+ export function join(separator: any, ...args: any[]): string;
19
20
  }