lib/simple-parameter-injector.js
/**
     * Static call to inject params into an object
     *
     * @private
     *
     * @param {string|object} target Plain object or string
     * @param {array|object} params Array or plain object with params
     *
     * @return {string|object} Plain object or string with injected params
     */
Static call to inject params into an object
@private

@param {string|object} target Plain object or string
@param {array|object} params Array or plain object with params

@return {string|object} Plain object or string with injected params
Static call to inject params into an object @private @param { string|object } target Plain object or string @param { array|object } params Array or plain object with params @return { string|object } Plain object or string with injected params
static inject(target, params) {
        var instance = (new ParameterInjector());
        if (_.isString(target)) {
            return instance.injectParams(target, params);
        }
        if (_.isPlainObject(target) || _.isArray(target)) {
            return instance.injectIntoObject(target, _.clone(params));
        }
        return target;
    }
static inject ( target , params ) { var instance = ( new ParameterInjector ( ) ) ; if ( _ . isString ( target ) ) { return instance . injectParams ( target , params ) ; } if ( _ . isPlainObject ( target ) || _ . isArray ( target ) ) { return instance . injectIntoObject ( target , _ . clone ( params ) ) ; } return target ; }
Static call to inject params into an object
 @private
Static call to inject params into an object @private