Skip to content

Conversation

schart
Copy link

@schart schart commented Aug 10, 2023

Here, the Object.prototype.toString.call() method checks the type of the given value. If the type is "Array", the function will return a type guard indicating that it is an array of the specified type. And it is faster than the other embedded method.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Here, the Object.prototype.toString.call() method checks the type of the given value. If the type is "Array", the function will return a type guard indicating that it is an array of the specified type. And it is faster than the other embedded method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant