Slices a section out of an array. Example:

  1. [1,2,3]@0 received via array

  2. 0@0 received via from

  3. 2@0 received via from

  4. [1,2]@0 sent via array

Input ports

  • array: any[]

    Receives array to slice out of. Example: [1,2,3]

  • from: number

    Receives start position of the slice (included). Example: 0

  • to: number

    Receives end position of the slice (not included. Example: 2

Output ports

  • slice: any[]

    Sends section sliced out of the input array. Example: [1,2]

Last updated