sass-site/source/code-snippets/example-list-nth.liquid
Jonny Gerig Meyer 1532553ef2
Merge branch 'main' into builtin-modules
* main:
  review
  Use JSON args for compatibility tag
  typo
  typo
  Use kwargs for {% compatibility %} tag.
  clearer example line breaks
  add missing @use
  silence sass warnings
  Do not autoformat md files
  combine more markdown blocks
  indentation for remainder of docs
  indentation for syntax docs
  indentation for style-rules docs
  indentation for cli docs
  indentation for breaking-changes
  Strip indentation from more paired shortcodes.
  Try out standard indentation
2023-06-02 17:36:10 -04:00

8 lines
273 B
Plaintext

{% codeExample 'example-list-nth', false %}
@debug list.nth(10px 12px 16px, 2); // 12px
@debug list.nth([line1, line2, line3], -1); // line3
===
@debug list.nth(10px 12px 16px, 2) // 12px
@debug list.nth([line1, line2, line3], -1) // line3
{% endcodeExample %}