Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1126

Migrate Array.prototype.contains() polyfill to Array.prototype.includes()

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Reported
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: API: JavaScript
    • Labels:
      None

      Description

      Currently we have a polyfill for a non-standard utility function Array.prototype.contains. ES6 introduced a function that does the same thing, called Array.prototype.includes.

      We should add Array.prototype.includes, and deprecate Array.prototype.contains.

      https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes?v=control

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              rweickelt Richard Weickelt
              Reporter:
              jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes