Nutritious Pancake Mountain

    x-is-empty-object

    1.0.2 • Public • Published

    x-is-empty-object

    x is either {} or new Object()

    usage

    npm install x-is-empty-object

      var xEmptyObject = require('x-is-empty-object')
     
      xEmptyObject({}) // => true
      xEmptyObject(new Object) // => true
      xEmptyObject(new Object()) // => true
     
      xEmptyObject([]) // => false
      xEmptyObject('') // => false
      xEmptyObject(new Date) // => false
      xEmptyObject(null) // => false
      xEmptyObject() // => false
      xEmptyObject(function(){}) // => false
      xEmptyObject(new RegExp) // => false

    related

    a list of other x-is-... modules can be found at

    Keywords

    none

    Install

    npm i x-is-empty-object

    DownloadsWeekly Downloads

    0

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • serapath