hyTags
HomeHome DocumentationDocumentation

array-append

Creates a new array with `value` appended to the end.
Parameter
Type
Description
self
[T]
Initial array
value
T
Value to append
return
[T]
New array with `value` appended
Test Case:Append to array
    <div></div>
    
    <array-new type="string">
    <array-append value="hello">
    <array-append value="world">
    <array-join separator=",">
    <assert-equal value="hello,world" type="string">
    
    👆 Try to change something!
  • Test succeeded Test failed