Contents

setValue(_:at:)

Sets the value at the specified numeric index in the JavaScript object value.

Declaration

func setValue(_ value: Any!, at index: Int)

Parameters

  • value:

    The value to set at the specified index.

  • index:

    An index in the JavaScript object.

Discussion

Calling this method is equivalent to using the subscript operator with a numeric subscript in JavaScript. Use it to access elements of JavaScript arrays or of objects with numerically-indexed properties.

Topics

Related Documentation

See Also

Working with Container Values