lib/util-x.js
function throwIfIsPrimitive(inputArg) {
        var type = typeof inputArg;

        if (type === 'undefined' || inputArg === null || type === 'boolean' || type === 'string' || type === 'number') {
            throw new CTypeError('called on non-object: ' + typeof inputArg);
        }

        return inputArg;
    }
function throwIfIsPrimitive(inputArg) {
        var type = typeof inputArg;

        if (type === 'undefined' || inputArg === null || type === 'boolean' || type === 'string' || type === 'number') {
            throw new CTypeError('called on non-object: ' + typeof inputArg);
        }

        return inputArg;
    }
function throwIfIsPrimitive ( inputArg ) { var type = typeof inputArg ; if ( type === 'undefined' || inputArg === null || type === 'boolean' || type === 'string' || type === 'number' ) { throw new CTypeError ( 'called on non-object: ' + typeof inputArg ) ; } return inputArg ; }
Throws a TypeError if the operand inputArg is not an object or not a function,
otherise returns the object.
@private
@function throwIfIsPrimitive
@param {*} inputArg
@throws {TypeError} if inputArg is not an object or a function.
@returns {(Object|Function)}
Throws a TypeError if the operand inputArg is not an object or not a function otherise returns the object .