Skip to content

Commit ca11a5a

Browse files
authored
golf: drop new from Array (#15)
1 parent e8c1f6b commit ca11a5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function klona(x) {
2222

2323
if (str === '[object Array]') {
2424
k = x.length;
25-
for (tmp=new Array(k); k--;) {
25+
for (tmp=Array(k); k--;) {
2626
tmp[k] = klona(x[k]);
2727
}
2828
return tmp;

0 commit comments

Comments
 (0)