is-object.js 146 Bytes edit raw blame history 1 2 3 4 5 6 7 'use strict'; var map = { 'function': true, object: true }; module.exports = function (x) { return ((x != null) && map[typeof x]) || false; };