Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

skava / exotic   js

Repository URL to install this package:

Version: 2.0.8 

/ src / types / obj / check / isBlankObj.ts

import { PlainObj } from '../../../../typings'

/**
 * Determine if a value is an object with a null prototype
 *
 * @returns {boolean} True if `value` is an `Object` with a null prototype
 */
function isBlankObject(x: any): x is PlainObj {
  return x !== null && typeof x === 'object' && !Object.getPrototypeOf(x)
}

export { isBlankObject }
export default isBlankObject