If I understand Allen answer looks like `Array.from(β€œπŸ’©&πŸ’©β€).length` would
do, being 3, and making the operation straight forward?

Cheers


On Fri, Oct 18, 2013 at 1:33 PM, Mathias Bynens <[email protected]> wrote:

> On 18 Oct 2013, at 15:12, Andrea Giammarchi <[email protected]>
> wrote:
>
> > so my counter-question would be: is there any way to do that in core so
> that we can β€œπŸ’©πŸ’©πŸ’©β€.split() it so that we can have an ArrayLike that with
> [1] gives back the single β€œπŸ’©β€ and not the whole thing ?
>
> This brings us back to the earlier discussion of whether something like
> `String.prototype.codePoints` should be added:
> http://esdiscuss.org/topic/how-to-count-the-number-of-symbols-in-a-stringI 
> think it would be useful
>
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to