aboutsummaryrefslogtreecommitdiffstats
path: root/src/utilities.js
blob: 4770f9b8ab9025020ab08585c2c181dac355651f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
  }

}