isPrimitive.js 151 Bytes
Newer Older
1 2 3 4 5
'use strict';

module.exports = function isPrimitive(value) {
	return value === null || (typeof value !== 'function' && typeof value !== 'object');
};