Comments (9)
@ljharb thanks!
from array.from.
This is a spec-compliant method - is FileList array like, or does it have Symbol.iterator? If not, it's not supposed to work with Array.from.
from array.from.
Yes.
from array.from.
Hmm - #4 is for iterator support, but since it's array-like, it should just work already. (Note that Array.isArray()
is the proper way to check if something's an array, never instanceof
).
In your original post, is FileList
the actual list of files, or is it the constructor for the list of files?
Could you create a jsfiddle (using https://wzrd.in/standalone/array.from@latest if that helps) that reproduces the failure?
from array.from.
Done.
It's peculiar, because the native Array.from
yields an array of File
objects – whereas the polyfill implementation simply wraps FileList
in an array.
from array.from.
Hopefully #27 can help with this issue?
from array.from.
FileLists are arraylike, and don't necessarily have Symbol.iterator
, so this is a separate issue.
from array.from.
@Wildhoney thank you - I've found the bug. The tests were being run on everything except the single binding at the main entry point - and that's where it was.
Fix incoming shortly.
from array.from.
Released as v1.0.2
from array.from.
Related Issues (20)
- Publish to npm HOT 3
- Compatible with IE6-8? HOT 7
- Test 'swallows negative lengths' spec conformance HOT 2
- Array.from(MapIterator) problem HOT 2
- Arrays are read only? HOT 2
- Array.from does not work for ES6 Sets HOT 6
- Fails to find existing implementation on Chrome 50 on OSX? HOT 1
- How can I use this in my Angular2 project HOT 1
- Astral symbols breaking. Is that expected? [question] HOT 2
- Working with Symbol.iterator polyfill and @@iterator HOT 1
- Map/Set Iterator tests broken in Firefox HOT 7
- Tests results based on latest master HOT 1
- is-callable dependency missing from package.json HOT 1
- Splits astral symbol into surrogate pairs HOT 3
- Syntax error when run through karma-webpack HOT 10
- Publish release to npm HOT 4
- Installation in a browser via npm? HOT 6
- Object doesn't support property or method 'from' HOT 3
- How to use with 'import' in browser? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from array.from.