All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.src.compat.array.js Maven / Gradle / Ivy

import "../core/array";
import "../core/document";

// Redefine d3_array if the browser doesn’t support slice-based conversion.
if (d3_document) {
  try {
    d3_array(d3_document.documentElement.childNodes)[0].nodeType;
  } catch (e) {
    d3_array = function(list) {
      var i = list.length, array = new Array(i);
      while (i--) array[i] = list[i];
      return array;
    };
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy