all files / src/lib/ env.js

55.56% Statements 5/9
60% Branches 6/10
100% Functions 0/0
66.67% Lines 4/6
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18                           
/*!
 * Sheetrock
 * Quickly connect to, query, and lazy-load data from Google Sheets.
 * https://chriszarate.github.io/sheetrock/
 * License: MIT
 */
 
const root = (typeof window === 'undefined') ? {} : window;
 
// Provide details about environment.
const env = {
  document: root.document || {},
  dom: !!(root.document && root.document.createElement),
  jquery: !!(root.jQuery && root.jQuery.fn && root.jQuery.fn.jquery),
};
 
export default env;