index.js
/**
   * Check if the object is a plain object or not. This has been pulled from the jQuery core and modified slightly.
   * @param {object} obj
   * @returns {boolean} returns weather the object is a plain object or not.
   * @memberOf global.excelFormulaUtilities.core
   */
Check if the object is a plain object or not. This has been pulled from the jQuery core and modified slightly.
@param {object} obj
@returns {boolean} returns weather the object is a plain object or not.
Check if the object is a plain object or not . This has been pulled from the jQuery core and modified slightly . @param { object } obj @returns { boolean } returns weather the object is a plain object or not .
static isPlainObject(obj) {
    if (!obj || typeof obj !== "object" || obj.nodeType || isWindow(obj)) {
      return false;
    }
    if (
      obj.constructor &&
      !hasOwnProperty.call(obj, "constructor") &&
      !hasOwnProperty.call(obj.constructor.prototype, "isPrototypeOf")
    ) {
      return false;
    }
    var lastKey;
    for (key in obj) {
      lastKey = key;
    }
    return lastKey === undefined || hasOwnProperty.call(obj, lastKey);
  }
static isPlainObject ( obj ) { if ( ! obj || typeof obj !== "object" || obj . nodeType || isWindow ( obj ) ) { return false ; } if ( obj . constructor && ! hasOwnProperty . call ( obj , "constructor" ) && ! hasOwnProperty . call ( obj . constructor . prototype , "isPrototypeOf" ) ) { return false ; } var lastKey ; for ( key in obj ) { lastKey = key ; } return lastKey === undefined || hasOwnProperty . call ( obj , lastKey ) ; }
Check if the object is a plain object or not.
Check if the object is a plain object or not .
// Must be an Object. // Because of IE, we also have to check the presence of the constructor property. // Make sure that DOM nodes and window objects don't pass through, as well // Not own constructor property must be Object // Own properties are enumerated firstly, so to speed up, // if last one is own, then all properties are own.