function convertToScalars( params ) {
	var p;
	var i;

	for ( i = 0; i < params.length; i++ ) {
		p = params[ i ];
		if ( p.scalar === false ) {
			p.scalar = true;
			p.value = p.value.get();
			p.ndims = 0;
			p.order = '';
		}
	}
	return params;
}
Converts a list of parameters to scalar values.

## Notes

-   The function **mutates** the input array by updating parameter objects which do not already correspond to scalar parameter values.

@private
@param {Array<Object>} params - list of parameter objects
@returns {Array<Object>} updated list