lib/json-dry.js
function regenerateArray(root, holder, current, seen, retrieve, undry_paths, old, current_path) {

	var length = current.length,
	    temp,
	    i;

	for (i = 0; i < length; i++) {
		// Only regenerate if it's not yet seen
		if (!seen.get(current[i])) {

			temp = current_path.slice(0);
			temp.push(i);

			current[i] = regenerate(root, current, current[i], seen, retrieve, undry_paths, old, temp);
		}
	}

	return current;
}
function regenerateArray(root, holder, current, seen, retrieve, undry_paths, old, current_path) {

	var length = current.length,
	    temp,
	    i;

	for (i = 0; i < length; i++) {
		// Only regenerate if it's not yet seen
		if (!seen.get(current[i])) {

			temp = current_path.slice(0);
			temp.push(i);

			current[i] = regenerate(root, current, current[i], seen, retrieve, undry_paths, old, temp);
		}
	}

	return current;
}
function regenerateArray ( root , holder , current , seen , retrieve , undry_paths , old , current_path ) { var length = current . length , temp , i ; for ( i = 0 ; i < length ; i ++ ) { // Only regenerate if it's not yet seen if ( ! seen . get ( current [ i ] ) ) { temp = current_path . slice ( 0 ) ; temp . push ( i ) ; current [ i ] = regenerate ( root , current , current [ i ] , seen , retrieve , undry_paths , old , temp ) ; } } return current ; }
Regenerate an array

@author   Jelle De Loecker   <jelle@develry.be>
@since    0.1.4
@version  1.0.8

@return   {Array}
Regenerate an array