diff options
Diffstat (limited to 'src/utilities.js')
-rw-r--r-- | src/utilities.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/utilities.js b/src/utilities.js new file mode 100644 index 0000000..4770f9b --- /dev/null +++ b/src/utilities.js @@ -0,0 +1,14 @@ +SVG.utils = { + // Map function + map: function(array, block) { + var i + , il = array.length + , result = [] + + for (i = 0; i < il; i++) + result.push(block(array[i])) + + return result + } + +}
\ No newline at end of file |