mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
8 years ago
8 changed files with 34 additions and 14 deletions
@ -0,0 +1,3 @@ |
|||
module.exports = { |
|||
description: 'does not break apart vars in for loop head' |
|||
}; |
@ -0,0 +1,10 @@ |
|||
function clone ( things ) { |
|||
var result = []; |
|||
for ( var i = 0, list = things; i < list.length; i += 1 ) { |
|||
var thing = list[i]; |
|||
result.push( thing ); |
|||
} |
|||
return result; |
|||
} |
|||
|
|||
assert.deepEqual( clone([ 1, 2, 3 ]), [ 1, 2, 3 ] ); |
Loading…
Reference in new issue