18 lines
350 B
JavaScript
18 lines
350 B
JavaScript
// Module ID: 4411
|
|
// Function ID: 4412
|
|
// Name: isPrimitive
|
|
// Dependencies: []
|
|
|
|
// Module 4411 (isPrimitive)
|
|
|
|
export default function isPrimitive(fn) {
|
|
let tmp = null === fn;
|
|
if (!tmp) {
|
|
let tmp2 = typeof fn !== "function";
|
|
if (typeof fn !== "function") {
|
|
tmp2 = typeof fn !== "object";
|
|
}
|
|
tmp = tmp2;
|
|
}
|
|
return tmp;
|
|
};
|