hyTags
HomeHome DocumentationDocumentation

array-remove

Creates a new array with the element at the specified index removed.
Parameter
Type
Description
self
[T]
Initial array
index
Number
Index of element to remove
return
[T]
New array with element at index removed
Test Case:Remove element at index
    <div></div>
    
    <array-new type="string">
    <array-append value="a">
    <array-append value="b">
    <array-append value="c">
    <array-remove index="1">
    <array-join separator=",">
    <assert-equal value="a,c" type="string">
    
    👆 Try to change something!
  • Test succeeded Test failed