Skip to content

When processing arrays, can't distinguish between numerical and string item which has the "same" value  #10

Open
@passionwdy

Description

@passionwdy

example
findLongestMatch(1234, '1234') will return [0, 0, 1].

I guess the main reason is some object keys do not contain type info. For example in the SequenceMatcher.prototype._chainB function when generate b2j, elt should add the result of typeof elt. Like this elt = typeof elt + elt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions