## .PolyLinePoints~SmartArray(arropt)

array-like structure used in PolyLinePoints

#### new SmartArray(arropt)
`modules/svgObjects/PolyLinePoints.js`, `line 8`

  ##### Parameters:

  Name | Type | Attributes | Description
  --- | --- | --- | ---
  `arr` | Array | <optional> | if set, initialized SmartArray will contain these values

### Members

#### first
`modules/svgObjects/PolyLinePoints.js`, `line 88`

#### last
`modules/svgObjects/PolyLinePoints.js`, `line 77`

#### length
`modules/svgObjects/PolyLinePoints.js`, `line 61`

  get length of the array

### Methods

#### addWithIndex(item, index)
`modules/svgObjects/PolyLinePoints.js`, `line 49`

  add a new item at the specified index, move all following items

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `item` |  | new item that will be added at the specified index
  `index` | number | index of this item

#### append(item)
`modules/svgObjects/PolyLinePoints.js`, `line 32`

  append an item to the array

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `item` |  | new item that will be appended to the array

#### copy() → {SmartArray}
`modules/svgObjects/PolyLinePoints.js`, `line 24`

  get a deep copy of this array

  ##### Returns:

  SmartArray

#### getItem(index)
`modules/svgObjects/PolyLinePoints.js`, `line 70`

  get item by index

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `index` | number | index of the item

  ##### Returns:

  -

  contents of the array on the specified index

#### prepend(item)
`modules/svgObjects/PolyLinePoints.js`, `line 40`

  prepend an item to the array

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `item` |  | new item that will be prepended to the array

#### remove(index)
`modules/svgObjects/PolyLinePoints.js`, `line 100`

  remove an item from the array by index

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `index` | number | index of the item that will be removed