镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

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

Open

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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