?
split
Summary​
Separates an object into two objects based on chosen keys
Description​
Takes all entries corresponding to the given 'keys' in 'object' and extracts them into a separate 'object'. Returns a tuple with the new 'object' and the old 'object' with removed keys.
Fields​
Object​
An object to be split into two objects.
Keys​
The keys to include in the new object.
Helpful?