src/memoizerific.js
function moveToMostRecentLru(lru, lruPath) {
	var lruLen = lru.length,
		lruPathLen = lruPath.length,
		isMatch,
		i, ii;

	for (i = 0; i < lruLen; i++) {
		isMatch = true;
		for (ii = 0; ii < lruPathLen; ii++) {
			if (!isEqual(lru[i][ii].arg, lruPath[ii].arg)) {
				isMatch = false;
				break;
			}
		}
		if (isMatch) {
			break;
		}
	}

	lru.push(lru.splice(i, 1)[0]);
}
function moveToMostRecentLru(lru, lruPath) {
	var lruLen = lru.length,
		lruPathLen = lruPath.length,
		isMatch,
		i, ii;

	for (i = 0; i < lruLen; i++) {
		isMatch = true;
		for (ii = 0; ii < lruPathLen; ii++) {
			if (!isEqual(lru[i][ii].arg, lruPath[ii].arg)) {
				isMatch = false;
				break;
			}
		}
		if (isMatch) {
			break;
		}
	}

	lru.push(lru.splice(i, 1)[0]);
}
function moveToMostRecentLru ( lru , lruPath ) { var lruLen = lru . length , lruPathLen = lruPath . length , isMatch , i , ii ; for ( i = 0 ; i < lruLen ; i ++ ) { isMatch = true ; for ( ii = 0 ; ii < lruPathLen ; ii ++ ) { if ( ! isEqual ( lru [ i ] [ ii ] . arg , lruPath [ ii ] . arg ) ) { isMatch = false ; break ; } } if ( isMatch ) { break ; } } lru . push ( lru . splice ( i , 1 ) [ 0 ] ) ; }
move current args to most recent position
move current args to most recent position