How can I use variable in SASS extend?

I am trying to convert the following mixing to extend for example:
=lineClamp($lineNumbers: 3)
    -webkit-line-clamp: $lineNumbers
    display: -webkit-box
    -webkit-box-orient: vertical
    overflow: hidden
Was this page helpful?