Class: DefArray

algeobra~DefArray()

Defines an array consisting of other object values

Constructor

new DefArray()

Source:

Methods

compute(info) → {Array}

Create the array value
Parameters:
Name Type Description
info CreateInfo The creation info
Source:
Returns:
An array containing the specified objects
Type
Array

(static) fromObjects(objects, params) → {CreateInfo}

Make an array out of objects
Parameters:
Name Type Description
objects Object | Array Either the indices or values of objects stored in an array or shallow object
params Object
Properties
Name Type Attributes Description
filterOutInvalid Boolean <optional>
If true, INVALID values will not be included in the result
filterOutEmpty Boolean <optional>
If true, EMPTY values will not be included in the result
filterOutNull Boolean <optional>
If true, null values will not be included in the result
appendArrayDependencies Boolean <optional>
If true, arrays will not be treated as single elements, but the array elements will be appended to the results
ignoreInvalids Boolean <optional>
If true, the array will be constructed, even if there are any INVALID dependencies
Source:
Returns:
The creation info
Type
CreateInfo