subarray

subarray

Syntax

subarray(arr, start, end)

Package

array

Alias

 

Pkg Usage

subarray(arr, start, end)

Description

Returns an array starting with index 'start' and ending at index 'end'.

Parameters

Parameter name

Type

Required

Description

Parameter name

Type

Required

Description

arr

Array

Yes

Array.

start

Number

Yes

Start index.

end

Number

Yes

Stop index.

Return Type

Array

Example

string [] firstFollowers = subarray(watchers, 1, 3); //assume the length of watchers>= 3

See also

Peacock

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.