1
0
Fork 0
freesewing/markdown/dev/reference/api/attributes/remove/en.md
2021-10-17 18:26:00 +02:00

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