code: function isPrimitive( value ) {
  	var type = typeof value;
  	return type === 'string' || type === 'number' || type === 'boolean' || value === null || value === undefined;
  }
docs: FUNCTION: isPrimitive( value )
  Validates if a value is a JavaScript primitive.
  
  @param {*} value - value to be validated
  @returns {Boolean} boolean indicating if a value is a JavaScript primitive