Skip to content

Commit

Permalink
Fix polyFill.
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Aug 30, 2018
1 parent 13d8ba4 commit da8856a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SLP.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ const getPlayerColor = (pal, idx, player) => pal[idx + 16 * player]
* Noncompliant `Array.fill` polyfill that does everything this module needs.
*/
function polyFill (value, start, end) {
if (!end) end = this.length
if (!start) start = 0
if (end === undefined) end = this.length
if (start === undefined) start = 0
for (var i = start; i < end; i++) {
this[i] = value
}
Expand Down

0 comments on commit da8856a

Please sign in to comment.