8 lines
162 B
JavaScript
8 lines
162 B
JavaScript
module.exports = hasKeys
|
|
|
|
function hasKeys(source) {
|
|
return source !== null &&
|
|
(typeof source === "object" ||
|
|
typeof source === "function")
|
|
}
|