When using
append($list, $item)
and a normal list, lists are never equal with
==
and are always equal with
is
When using two
append($list, $item)
the
==
operator is correct.
Take a look at the sass in this codepen, and then click scss to convert it to css