UNPKG

write-excel-file

Version:

Write simple `*.xlsx` files in a browser or Node.js

16 lines (15 loc) 650 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = getAttributesString; var _sanitizeAttributeValue = _interopRequireDefault(require("./sanitizeAttributeValue.js")); function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } function getAttributesString(attributes) { return Object.keys(attributes).map(function (name) { return "".concat(name, "=\"").concat((0, _sanitizeAttributeValue["default"])(String(attributes[name])), "\""); }).reduce(function (combined, part) { return combined + ' ' + part; }, ''); } //# sourceMappingURL=getAttributesString.js.map