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

    Function cloneInclusive

    • Returns an object that cloned from the given object, includes the given keys only

      Parameters

      • Optionalsource: object

        the object to clone

      • Optionalkeys: string[]

        the key names to include

      Returns undefined | object

      an object that cloned from the given object, includes the given keys only

      David Hsing

      cloneInclusive({'foo': 'bar'}, ['foo']);