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

Created on 12 June 2024, 9 months ago
Updated 22 July 2024, 8 months 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 21 hours ago

Created by

🇯🇵Japan tom konda Kanagawa, Japan

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024