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

    Function regenProps

    • Returns an object that regenerated the given source, processing each property value and assigning it back

      Parameters

      • object: any

        the source object to assign to

      • Optionalcallback: (key?: string, index?: number) => any

        the callback function that processes each prop key

      Returns undefined | object

      an object that regenerated the given source, processing each property value and assigning it back

      David Hsing

      regenProps({'foo': 'bar'}, () => 'foobar');    // {'foo': 'foobar'}