charlike
Version:
Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options
16 lines (12 loc) • 382 B
JavaScript
/*!
* is-real-object <https://github.com/tunnckoCore/is-real-object>
*
* Copyright (c) 2015-2016 Charlike Mike Reagent <@tunnckoCore> (http://www.tunnckocore.tk)
* Released under the MIT license.
*/
var isArray = require('isarray')
var isObject = require('is-extendable')
module.exports = function isRealObject (val) {
return !isArray(val) && isObject(val)
}