is-object.js 193 B

123456789
  1. "use strict";
  2. var isValue = require("./is-value");
  3. var map = { function: true, object: true };
  4. module.exports = function (value) {
  5. return (isValue(value) && map[typeof value]) || false;
  6. };