text: export default function klona(x) {
  	var k, tmp, str=Object.prototype.toString.call(x);
  
  	if (str === '[object Object]') {
  		tmp = {};
  		for (k in x) {
  			tmp[k] = klona(x[k]);
  		}
  		return tmp;
  	}
  
  	if (str === '[object Array]') {
  		k = x.length;
  		for (tmp=Array(k); k--;) {
  			tmp[k] = klona(x[k]);
  		}
  		return tmp;
  	}
  
  	if (str === '[object Date]') {
  		return new Date(+x);
  	}
  
  	if (str === '[object RegExp]') {
  		tmp = new RegExp(x.source, x.flags);
  		tmp.lastIndex = x.lastIndex;
  		return tmp;
  	}
  
  	return x;
  }
  