Browse Source

moving polyfills

pull/570/head
jaymeans 7 years ago
parent
commit
f667b72561
  1. 27
      papaparse.js

27
papaparse.js

@ -1,9 +1,19 @@ @@ -1,9 +1,19 @@
/*@license
Papa Parse
v4.6.0
https://github.com/mholt/PapaParse
License: MIT
Papa Parse
v4.6.0
https://github.com/mholt/PapaParse
License: MIT
*/
// Polyfills
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray#Polyfill
if (!Array.isArray)
{
Array.isArray = function(arg) {
return Object.prototype.toString.call(arg) === '[object Array]';
};
}
(function(root, factory)
{
/* globals define */
@ -41,15 +51,6 @@ @@ -41,15 +51,6 @@
return {};
})();
// Polyfills
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray#Polyfill
if (!Array.isArray)
{
Array.isArray = function(arg) {
return Object.prototype.toString.call(arg) === '[object Array]';
};
}
var IS_WORKER = !global.document && !!global.postMessage,
IS_PAPA_WORKER = IS_WORKER && /(\?|&)papaworker(=|&|$)/.test(global.location.search),
LOADED_SYNC = false, AUTO_SCRIPT_PATH;

Loading…
Cancel
Save