Move processOptions to utils
parent
b5d01f7505
commit
1fca2daff6
@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
|
||||
const objects = require( "./objects" );
|
||||
|
||||
function processOptions( options, defaults ) {
|
||||
|
||||
const processedOptions = {};
|
||||
|
||||
objects.extend( processedOptions, options );
|
||||
objects.extend( processedOptions, defaults );
|
||||
|
||||
return processedOptions;
|
||||
|
||||
}
|
||||
|
||||
module.exports = processOptions;
|
Loading…
Reference in New Issue