What characters are grouped with Array.from?
问题 I've been playing around with JS and can't figure out how JS decides which elements to add to the created array when using Array.from() . For example, the following emoji 👍 has a length of 2, as it is made of two code points, but, Array.from() treats these two code points as one, giving an array with one element: const emoji = '👍'; console.log(Array.from(emoji)); // Output: ["👍"] However, some other characters also have two code points such as this character षि (also has a .length of 2).