@yookue/ts-lang-utils
    Preparing search index...

    Function setProp

    • 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

      David Hsing

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