grapheme-iterator

Iterator that yields the Unicode Extended Grapheme Clusters in a string.

Usage

import grapheme_iterator from 'grapheme-iterator';
[...grapheme_iterator("๐Ÿ‡น๐Ÿ‡ผไบบ๐Ÿ‘ฉโ€โš•๏ธ")].length === 3;