Mikhail
Mikhail
Browser's `fetch` uses 'GET' by default. This fix omits default parameter and reduce output command.
I've simplified the check for undefined a bit. In this case, there is no need for an additional `typeof` check. Modern browsers do not allow overwriting the global `undefined`. This...
I replaced regexp with a startsWith.
Minor optimization with `find` and `filter` Thank you very much for your contribution! Please make sure the followings are checked. - [x] Read [CONTRIBUTING.md](../CONTRIBUTING.md) - [x] Run `npm test` to...
Since `preventDefault` is not used in the events, you can add passive: true for responsiveness.
### Summary Minor optimization: I have simply replaced `getElementsByTagName` + `Array.from` with `querySelectorAll`, which already has a `forEach` method. ### Checklist * [x] Does your PR title have the correct...
### Additional details I did a little optimization of reduce to avoid creating new object each iteration. And set O(n) instead of O(n*n). ### Steps to test ### How has...
A fixed deprecation warning in Node.js 22 ```bash (node:56912) [DEP0044] DeprecationWarning: The `util.isArray` API is deprecated. Please use `Array.isArray()` instead. ``` | Q | A | ------------- | --- |...
I replaced `map` with `find` to simplify code and early exit from loop.
## Summary I optimized reduce to avoid N*N. ## Test plan