376 B
376 B
title |
---|
remove() |
Attributes attributes.remove(string key)
Removes the attribute values under key and returns the Attributes object.
let { Path, paths } = part.shorthand();
paths.demo = new Path()
.attr('class', 'classA')
.attr('class', 'classB');
let class = paths.example.attributes
.remove()
.get('class');
// class now holds: false