Created
December 1, 2020 21:14
-
-
Save gpDA/01ba90b46d501a906a604d3cda1eac87 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // All of the following Non-iterable data types will throw errors | |
| Object.fromEntries(undefined); // undefined | |
| Object.fromEntries(null); // null | |
| Object.fromEntries(true); // boolean | |
| Object.fromEntries(100); // number | |
| Object.fromEntries("hi"); // string | |
| Object.fromEntries({key: "value"}); // object | |
| Object.fromEntries([1,2,3); // single value array |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment