Portfolio/node_modules/is-obj/index.js
oitsjustjose 4e066bffc9 Init
2017-02-25 03:50:31 -05:00

5 lines
137 B
JavaScript

'use strict';
module.exports = function (x) {
var type = typeof x;
return x !== null && (type === 'object' || type === 'function');
};