• Returns an object that cloned from the given object, excludes all the given keys

    Parameters

    • Optionalsource: object

      the object to clone

    • Optionalkeys: string[]

      the key names to exclude

    Returns object | undefined

    an object that cloned from the given object, excludes all the given keys

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