• Sets the property value on the given object

    Parameters

    • object: any

      the object to inspect

    • Optionalprop: null | string

      the property name to inspect

    • Optionalvalue: any

      the value to set

    Returns void

    setProp({}, 'foo', 'bar');