UNPKG

test-openapi

Version:
13 lines (10 loc) 233 B
'use strict' // Is a plain object, including `Object.create(null)` const isObject = function(val) { return ( val != null && (val.constructor === Object || val.constructor === undefined) ) } module.exports = { isObject, }