mirror of
https://github.com/marko-js/marko.git
synced 2026-02-01 16:07:13 +00:00
17 lines
324 B
Plaintext
17 lines
324 B
Plaintext
<script marko-init>
|
|
var notEmpty = require('marko/helpers/notEmpty');
|
|
var empty = require('marko/helpers/empty');
|
|
</script>
|
|
|
|
<div if(notEmpty(['a', 'b', 'c']))>
|
|
notEmpty-YES
|
|
</div>
|
|
<div if(notEmpty([]))>
|
|
notEmpty-NO
|
|
</div>
|
|
<div if(empty(['a', 'b', 'c']))>
|
|
empty-NO
|
|
</div>
|
|
<div if(empty([]))>
|
|
empty-YES
|
|
</div> |