Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/modules / ___dist / thisless / isPlainObj.js
Size: Mime:
"use strict";

/**
 * @param {*}
 * @return {boolean}
 */
const isUndefined = x => x === undefined;
/**
 * @param {*} value
 * @return {boolean}
 */


function isPlainObject(value) {
  if (value === null || typeof value !== 'object') {
    return false;
  }

  const proto = Object.getPrototypeOf(value);
  return proto === Object.prototype || proto === null;
}

exports.isPlainObject = isPlainObject;
exports.isUndefined = isUndefined;