Skip to content

Commit

Permalink
Replaced es6 arrow function with function (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedfouzan authored and victorquinn committed Nov 30, 2018
1 parent 98964cc commit b7f4c2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chance.js
Expand Up @@ -543,7 +543,7 @@
var array = arr.slice(0);
var end = array.length;

return this.n(() => {
return this.n(function () {
var index = this.natural({max: --end});
var value = array[index];
array[index] = array[end];
Expand Down

0 comments on commit b7f4c2b

Please sign in to comment.