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

    Function mergeProps

    • Returns an object that merged the given source, when the key of source is missing, or the value of matching key is null or undefined

      Parameters

      • Optionaltarget: object

        the target object to assign to

      • Optionalsource: object

        the source object to assign from

      • overrideNil: boolean = true

        whether to override the value of target, when it is null or undefined

      Returns undefined | object

      an object that merged the given source, when the key of source is missing, or the value of matching key is null or undefined

      David Hsing

      mergeProps({}, {'foo': 'bar'});