WARNING: The [sjs-3] engine was deprecated, use [sjs-4] instead.

Collection.prototype.add()

Return an extended collection.

Syntax

collection.add(f File) Collection collection.add(c Collection) Collection

Parameters

f File

A file to add to the collection.

c Collection

A collection of files to add to the original collection.

Description

Return an extended collection with the file(s) added to the end of the original collection. The file’s will be appended even if they already existed in the original collection.

Note that the original collection is NOT modified, a new collection is created.

Examples

Adding a file.

Adding a collection