Closed XhmikosR closed 1 year ago
ES5 is required for isArray(), but it's the preferred way to check for arrays since instanceof has downsides
isArray()
instanceof
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray#description
Please check if your PR fulfills the following requirements:
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 [X] Documentation content changes [ ] Other... Please describe:
Issue Number: N/A
[ ] Yes [X] No
ES5 is required for
isArray()
, but it's the preferred way to check for arrays sinceinstanceof
has downsideshttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray#description
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information