documentit/node_modules/xtend/has-keys.js

8 lines
162 B
JavaScript
Raw Permalink Normal View History

2018-01-05 18:48:13 +00:00
module.exports = hasKeys
function hasKeys(source) {
return source !== null &&
(typeof source === "object" ||
typeof source === "function")
}