Array.values

Array.values

Array.values

Function

Returns a shallow copy of the array.

Syntax

Parameters

No parameters.

Return value

TypeDescription
ArrayReturns the new array value.

Example

Notes

  • Reference type elements still maintain reference semantics.