• 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 object | undefined

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

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