1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const lodash_1 = require("../../wrap/lodash");
|
4 | const is_generator_1 = require("../is-generator");
|
5 | exports.default = (thing) => !(!lodash_1.default.isObject(thing) || isBoxedType(thing) || is_generator_1.default(thing));
|
6 | const 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);
|