Properties

Specifies whether the layer is set to preview (true) or outline
mode (false). If a layer is set to outline mode, items in all
it's child layers are rendered in outline mode, regardless of their
preview settings.

Returns:

Boolean
— true if the layer is set to preview, false if the
layer is set to outline

Returns all items contained within the layer, including indirect children
of the layer.

Sample code:

var group = new Group();
var path = new Path();
group.appendTop(path);
// the direct children of the layer:
print(document.activeLayer.children); // Group (@31fbd500)
// all items contained within the layer:
print(document.activeLayer.items); // Group (@31fbd500), Path (@31fbbb00)