lib/compare.js
function parseOptions(obj) {
            var ctr = 0,
                tab = getTabs(1, true);
            for(var prop in obj) {
                if(obj.hasOwnProperty(prop)){
                    if(_.isPlainObject(obj[prop])){
                        if(!_.isEmpty(obj[prop])){
                            var child = recurseChildOptions(obj[prop]);
                            if(child && child.length)
                                build.options.push(tab + prop + ': { \n' + child + ' \n' + tab + '}');
                        }
                    } else {
                        if(_.isArray(obj[prop])){
                            build.options.push(tab + prop + ': ' + arrayToString(obj[prop]));
                        } else {
                            var val = obj[prop];
                            if(_.isString(val))
                                val = qwrap(val);
                            else
                                val = val.toString();
                            build.options.push(tab + prop + ': ' + val);
                        }
                    }
                }
                ctr +=1;
            }

        }
function parseOptions(obj) {
            var ctr = 0,
                tab = getTabs(1, true);
            for(var prop in obj) {
                if(obj.hasOwnProperty(prop)){
                    if(_.isPlainObject(obj[prop])){
                        if(!_.isEmpty(obj[prop])){
                            var child = recurseChildOptions(obj[prop]);
                            if(child && child.length)
                                build.options.push(tab + prop + ': { \n' + child + ' \n' + tab + '}');
                        }
                    } else {
                        if(_.isArray(obj[prop])){
                            build.options.push(tab + prop + ': ' + arrayToString(obj[prop]));
                        } else {
                            var val = obj[prop];
                            if(_.isString(val))
                                val = qwrap(val);
                            else
                                val = val.toString();
                            build.options.push(tab + prop + ': ' + val);
                        }
                    }
                }
                ctr +=1;
            }

        }
function parseOptions ( obj ) { var ctr = 0 , tab = getTabs ( 1 , true ) ; for ( var prop in obj ) { if ( obj . hasOwnProperty ( prop ) ) { if ( _ . isPlainObject ( obj [ prop ] ) ) { if ( ! _ . isEmpty ( obj [ prop ] ) ) { var child = recurseChildOptions ( obj [ prop ] ) ; if ( child && child . length ) build . options . push ( tab + prop + ': { \n' + child + ' \n' + tab + '}' ) ; } } else { if ( _ . isArray ( obj [ prop ] ) ) { build . options . push ( tab + prop + ': ' + arrayToString ( obj [ prop ] ) ) ; } else { var val = obj [ prop ] ; if ( _ . isString ( val ) ) val = qwrap ( val ) ; else val = val . toString ( ) ; build . options . push ( tab + prop + ': ' + val ) ; } } } ctr += 1 ; } }
Parse options for create model migrations.
@private
@memberof Compare
@param {object} obj - the object of options.
Parse options for create model migrations .