Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | class AbstractNodeView { |
||
36 | static unsetPrefixAttributes(prefix, attributes) { |
||
37 | const cleanedAttributes = {}; |
||
38 | Object.keys(attributes).forEach((attr) => { |
||
39 | if (attr.substr(0, prefix.length) !== prefix) { |
||
40 | cleanedAttributes[attr] = attributes[attr]; |
||
41 | } |
||
42 | }); |
||
43 | return cleanedAttributes; |
||
44 | } |
||
45 | } |
||
49 |