courseassets
- Description:
- Tracking of asset usage within courses
- Source:
Classes
Methods
(static) exports.extractAssetIds(schema, data, assets) → {Array.<String>}
- Description:
- Searches a data object for asset-type schema properties and collects their IDs
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
schema |
Object | The schema properties to traverse |
data |
Object | The data object to search for asset values |
assets |
Array.<String> | Accumulator array for found asset IDs |
Returns:
Unique array of asset IDs found in the data
- Type
- Array.<String>