Asset.constructor

The Asset constructor.

Must be called as function without the new keyword.

Syntax

Asset(name)

Parameters

Return value

An Asset object. Throws an error if the asset does not exist.

Examples

Asset("myasset")
Asset {}
Asset("doesnotexist")
ReferenceError: asset "doesnotexist" not found