Skip to content

toArray splits string with emojis incorrectly. #5112

Closed
@Dhanraj-Naik

Description

@Dhanraj-Naik

var _ = require('lodash');

_.toArray('🏴󠁧󠁢󠁥󠁮󠁧󠁿');

outputs as:

["🏴", "󠁧", "󠁢", "󠁥", "󠁮", "󠁧", "󠁿"]

Same thing happens with 🏴󠁧󠁢󠁳󠁣󠁴󠁿 scotland , 🏴󠁧󠁢󠁷󠁬󠁳󠁿 Wales flag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue bankruptcyClosing the issue/PR to start fresh

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions