1
0
Fork 0
freesewing/markdown/dev/reference/api/attributes/remove/en.md

23 lines
376 B
Markdown
Raw Normal View History

2021-10-17 17:34:55 +02:00
***
## title: remove()
```js
Attributes attributes.remove(string key)
```
Removes the attribute values under key and returns the Attributes object.
```js
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
```