Skip to content

Commit

Permalink
golf: drop new from Array (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
aulisius authored Jul 3, 2020
1 parent e8c1f6b commit ca11a5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function klona(x) {

if (str === '[object Array]') {
k = x.length;
for (tmp=new Array(k); k--;) {
for (tmp=Array(k); k--;) {
tmp[k] = klona(x[k]);
}
return tmp;
Expand Down

0 comments on commit ca11a5a

Please sign in to comment.