Which Sass function is used to get the index position for the value in list?

37. Which Sass function is used to get the index position for the value in list?

  1. get-index(list, value)
  2. getindex(list, value)
  3. list-index(list, value)
  4. index(list, value)

Answer: D) index(list, value)

Explanation:

The index(list, value) function is used to get the index position for the value in list.

Example:

index(a d c, d)
Result: 2

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.