Express_Crud_Example/node_modules/is-obj/index.js

7 lines
144 B
JavaScript
Raw Permalink Normal View History

2022-01-28 22:33:42 +01:00
'use strict';
module.exports = value => {
const type = typeof value;
return value !== null && (type === 'object' || type === 'function');
};