2021-10-17 17:34:55 +02:00
|
|
|
***
|
|
|
|
|
|
|
|
## title: remove()
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
```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
|
|
|
|
```
|