hyTags
HomeHome DocumentationDocumentation

array-new

Creates a new empty array.
Parameter
Type
Description
type
Type
The type of elements the array will contain
return
[T]
New empty array
Test Case:New empty array has size 0
    <div></div>
    
    <array-new type="string">
    <array-get-size>
    <assert-equal value="0" type="number">
    
    👆 Try to change something!
  • Test succeeded Test failed