Yes, please. Strings too.
I'd also love range access.. e.g. arr[2,5] to create a slice off the array/string/typedarray etc
/cc @MylesBorins @littledan @ljharbhttps://twitter.com/Fishrock123/status/1137072577925410816 …
-
-
if arraylike, it’d have to return code units; if based on iterables, code points. Nothing does graphemes. The syntax would be confusing imo if it only applies to arrays, and I’d be a hard pass on that.
-
Intl.Segmenter does graphemes.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.