slice

container slice(container, startIndex, endIndex)

Returns a portion (subsection) of container.

Arguments

  1. containerarray or text return a subsection of.
  2. startIndex — optional index (inclusive) of first element or character. 0 if omitted.
  3. endIndex — optional index (exclusive) of last element or character. Length of container if omitted.

Returns