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

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

    XMLWordPrintable

Details

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

    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

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes