code: function isScalar(obj) {
      var type = typeof obj;
      return (type !== 'undefined' && (
          obj === null ||
          type === 'string' ||
          type === 'number' ||
          type === 'boolean'
      ));
  }
docs: Return true if `obj` is a scalar
  
  @param {*} obj
  @return {boolean}