question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.fill is not defined in IE

See original GitHub issue

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
adamellsworthcommented, Jan 11, 2017

https://jsperf.com/fill-alternate-tests-2

Not sure if I’m setting these up correctly, but if so the push.apply is the quickest alternative.

for those who can't run jsperf in their browsers


That being said, @DamonOehlman is right in that it may be undefined/null.

if (version && version.length < 3) { //...

// Also, it's pretty safe to utilize 'isArray' (ecma5) if preferred
if (version && Array.isArray(version) && version.length < 3) { //...

Edit: PR Updated

0reactions
DamonOehlmancommented, Jan 16, 2017

Merged and published as 1.6.2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

fill() not supported in IE11 - Stack Overflow
The fill() command is not supported in Internet explorer. Is there any work around for fill() alone or should I rewrite whole syntax....
Read more >
in operator - JavaScript - MDN Web Docs - Mozilla
The in operator returns true if the specified property is in the specified object or its prototype chain.
Read more >
JavaScript Array fill() Method - W3Schools
The fill() method fills specified elements in an array with a value. The fill() method overwrites the original array. Start and end position...
Read more >
JavaScript Array fill() Method - GeeksforGeeks
The Javascript arr.fill() method is used to fill the array with a given ... If this value is not defined the starting index...
Read more >
fill an array using JavaScript: Different methods & examples
1. Syntax: array.fill(value, start, end) 2. Using this does not have any specific advantage over the previous method, apart from the ability to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found