ArraySlice Op

ArraySlice

This op is deprecated!

It will not receive any updates

Extracts parts of an array (shallow copy)


Example:

Input array: [1, 2, 3, 4, 5]

After calling Slice with Begin Index = 0 and End Index = 4: [1, 2, 3, 4]

Slice is a wrapper around the JavaScript slice function.


Edit Documentation

Full Name
  • Ops.Deprecated.Array.ArraySlice
Visibility
  • Core Op - Official cables op
License
  • MIT
Author


 

INPUT PORTS


Input Array (Array)

The array you want to slice

Begin Index (Number)

The index where the extraction should start. If Begin Index is negative it will extract elements from the end, e.g. when the Input Array is [1, 2, 3], calling Slice with Begin Index -1 will return 3

End Index (Number)

The index where the extraction should end (exclusive, so this one will not be included in the Output Array)

OUTPUT PORTS


Output Array (Array)

A copy of the Input Array which only included values from Start Index until End Index (exclusive)


Patches using ArraySlice

  • Examples
  • Public
  • My Patches