hyTags
HomeHome DocumentationDocumentation

array-is-empty

Checks if the array is empty.
Parameter
Type
Description
self
[T]
Array to check
return
bool
True if array is empty, false otherwise
Test Case:Empty array is empty
    <div></div>
    
    <array-new type="string">
    <array-is-empty>
    <assert-true>
    
    👆 Try to change something!
  • Test Case:Non-empty array is not empty
      <div></div>
      
      <array-new type="string">
      <array-append value="a">
      <array-is-empty>
      <assert-false>
      
      👆 Try to change something!
    • Test succeeded Test failed