Skip to content

Commit 5f1cf11

Browse files
chore(utils): do not mutate source arrays
1 parent 04ae4e5 commit 5f1cf11

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/grunt/utils.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,8 @@ module.exports = {
7575
},
7676

7777

78-
wrap: function(src, name) {
79-
src.unshift('src/' + name + '.prefix');
80-
src.push('src/' + name + '.suffix');
81-
return src;
78+
wrap(src, name) {
79+
return [`src/${name}.prefix`, ...src, `src/${name}.suffix`];
8280
},
8381

8482

0 commit comments

Comments
 (0)