function objectProperty (obj, indentLength = 1, inArray = 0) {
    if (Object.keys(obj).length === 0) {
      return ' {}';
    }

    let str = '\n';
    const objectPrefix = getPrefix(indentLength, indentChars);

    Object
      .keys(obj)
      .forEach((name) => {
        const value = obj[name];
        const type = typeOf(value);
        const inArrayPrefix = getPrefix(inArray, '  ');
        const afterPropsIndent = NO_INDENT_TYPES.includes(type) ? '' : ' ';
        const valueString = checkCircular(value) ? ' [Circular]' : typifiedString(type, value, indentLength + 1, inArray);

        str += `${
          inArrayPrefix
        }${
          objectPrefix
        }${
          name
        }:${
          afterPropsIndent
        }${
          valueString
        }\n`;
      });

    return str.substring(0, str.length - 1);
  }
function objectProperty (obj, indentLength = 1, inArray = 0) {
    if (Object.keys(obj).length === 0) {
      return ' {}';
    }

    let str = '\n';
    const objectPrefix = getPrefix(indentLength, indentChars);

    Object
      .keys(obj)
      .forEach((name) => {
        const value = obj[name];
        const type = typeOf(value);
        const inArrayPrefix = getPrefix(inArray, '  ');
        const afterPropsIndent = NO_INDENT_TYPES.includes(type) ? '' : ' ';
        const valueString = checkCircular(value) ? ' [Circular]' : typifiedString(type, value, indentLength + 1, inArray);

        str += `${
          inArrayPrefix
        }${
          objectPrefix
        }${
          name
        }:${
          afterPropsIndent
        }${
          valueString
        }\n`;
      });

    return str.substring(0, str.length - 1);
  }
function objectProperty ( obj , indentLength = 1 , inArray = 0 ) { if ( Object . keys ( obj ) . length === 0 ) { return ' {}' ; } let str = '\n' ; const objectPrefix = getPrefix ( indentLength , indentChars ) ; Object . keys ( obj ) . forEach ( ( name ) => { const value = obj [ name ] ; const type = typeOf ( value ) ; const inArrayPrefix = getPrefix ( inArray , '  ' ) ; const afterPropsIndent = NO_INDENT_TYPES . includes ( type ) ? '' : ' ' ; const valueString = checkCircular ( value ) ? ' [Circular]' : typifiedString ( type , value , indentLength + 1 , inArray ) ; str += ` ${ inArrayPrefix } ${ objectPrefix } ${ name } ${ afterPropsIndent } ${ valueString } \n ` ; } ) ; return str . substring ( 0 , str . length - 1 ) ; }
Object to yaml string formatter

@param {Object} obj
@param {number} [indentLength=1]
@returns {string}
Object to yaml string formatter