Function objectFitPolyfill

  • Parameters

    • Optional media: Node | [Node, ...Node[]]

      Positive for one of the 3 cases:

      1. An array with at least one Node is intended.
      2. If it's a Node, it's treated as an array containing a single Node.
      3. If left blank or undefined is passed, all media on the page will be polyfilled.

      In all the cases above, the function returns true. Otherwise, the function returns false immediately.

    Returns true

  • Parameters

    • media: unknown

    Returns false