const arrayLike = { 0: 'Value 0', 1: 'Value 1', length: 2 }; arrayLike.forEach(value => {/* Do something /}); // Errors const realArray = Array.from(arrayLike); realArray.forEach(value => {/ Do something */}); // Works
-
Notifications
You must be signed in to change notification settings - Fork 0
NziokiDennis/Converting-array-like-objects
About
Converting array like objects using array.from() method
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published