MCPcopy
hub / github.com/exceljs/exceljs / pushAttributes

Function pushAttributes

lib/utils/xml-stream.js:14–24  ·  view source on GitHub ↗
(xml, attributes)

Source from the content-addressed store, hash-verified

12 xml.push(` ${name}="${utils.xmlEncode(value.toString())}"`);
13}
14function pushAttributes(xml, attributes) {
15 if (attributes) {
16 const tmp = [];
17 _.each(attributes, (value, name) => {
18 if (value !== undefined) {
19 pushAttribute(tmp, name, value);
20 }
21 });
22 xml.push(tmp.join(""));
23 }
24}
25
26class XmlStream {
27 constructor() {

Callers 3

openXmlMethod · 0.85
openNodeMethod · 0.85
addAttributesMethod · 0.85

Calls 3

pushAttributeFunction · 0.85
eachMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…