Prefer to use Array.prototype.includes() for some of Array.prototype.indexOf()

Created on 12 June 2024, 14 days ago
Updated 18 June 2024, 7 days ago

Problem/Motivation

This issue similar to πŸ“Œ Use String.prototype.includes() instead of String.prototype.indexOf() where necessary Fixed .
Some of Array.prototype.indexOf() is used to check a specific item is or isn't included within a array.

Proposed resolution

Use Array.prototype.includes().
This method is suitable for array item existence check.

Remaining tasks

User interface changes

No.

API changes

No.

Data model changes

No.

Release notes snippet

πŸ“Œ Task
Status

Fixed

Version

10.4 ✨

Component
JavascriptΒ  β†’

Last updated about 5 hours ago

Created by

πŸ‡―πŸ‡΅Japan Tom Konda

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024