UNPKG

472 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const lodash_1 = require("../../wrap/lodash");
4const is_generator_1 = require("../is-generator");
5exports.default = (thing) => !(!lodash_1.default.isObject(thing) || isBoxedType(thing) || is_generator_1.default(thing));
6const isBoxedType = (thing) => lodash_1.default.compact([
7 Boolean,
8 Date,
9 Number,
10 RegExp,
11 String,
12 global.Symbol
13]).some(type => thing instanceof type);