lib/altshift/core/base.js
function isScalar(obj) {
    var type = typeof obj;
    return (type !== 'undefined' && (
        obj === null ||
        type === 'string' ||
        type === 'number' ||
        type === 'boolean'
    ));
}
function isScalar(obj) {
    var type = typeof obj;
    return (type !== 'undefined' && (
        obj === null ||
        type === 'string' ||
        type === 'number' ||
        type === 'boolean'
    ));
}
function isScalar ( obj ) { var type = typeof obj ; return ( type !== 'undefined' && ( obj === null || type === 'string' || type === 'number' || type === 'boolean' ) ) ; }
Return true if `obj` is a scalar

@param {*} obj
@return {boolean}
Return true if obj is a scalar