Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RegExp#matchの返り値について #785

Closed
azu opened this issue May 14, 2019 · 2 comments · Fixed by #858
Closed

RegExp#matchの返り値について #785

azu opened this issue May 14, 2019 · 2 comments · Fixed by #858

Comments

@azu
Copy link
Collaborator

azu commented May 14, 2019

特殊な返り値なので注記を入れる

@azu
Copy link
Collaborator Author

azu commented Jun 30, 2019

TypeScriptは

interface RegExpMatchArray extends Array<string> {
    index?: number;
    input?: string;
}

https://tc39.es/ecma262/#sec-regexpbuiltinexec
も一応Arrayを作ってプロパティを追加したものになってる

@azu
Copy link
Collaborator Author

azu commented Jun 30, 2019

"特殊な配列"とした

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

Successfully merging a pull request may close this issue.

1 participant