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

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

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: P4: Low P4: Low
    • 2.0
    • None
    • API: JavaScript
    • None
    • 087c22e17 (master)

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes