Create SVG elements
Install with component(1):
$ component install yields/svg-create
Create an array of svg elements of tag
, with length
which is defaulted to 1
.
var els = create('text', 8);
assert(8 == els.length);
els.forEach(function(el){
assert('text' == el.tagName);
});
MIT