code: function wrap(array, map, getter){
      var result = [];
      getter = basis.getter(getter || basis.fn.$self);
      for (var k in map)
        for (var i = 0; i < array.length; i++)
        {
          var value = getter(array[i]);
          result[i] = map[k](array[i], i, value) ? createElement(k, value) : array[i];
        }
      return result;
    }
docs: Wrap array items into elements according to map.
  @example
  basis.dom.wrap([1,2,3,4,5], { 'SPAN.match': function(val, idx){ return idx % 2 } });
  // result: [1, <span class="match">2</span>, 3, <span class="match">4</span>, 5]
  
  basis.dom.wrap([1,2,3], { A: basis.fn.$true, B: function(val, idx){ return val == 3 } });
  // result: [<a>1</a>, <a>2</a>, <b><a>3</a></b>]
  @param {Array} array
  @param {object} map
  @return {Array}