You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second parameter should be a function with two arguments, which represents one key-value pair in the object. The return value should be a list containing two objects. The first object should contain all the key-value pairs where the function parameter returns a truthy value, and the second object should contain all the key-value pairs where the function parameter returns a falsey value.
The original object passed into the function should not be altered.
The text was updated successfully, but these errors were encountered:
We should have a method that partitions an object based on a certain condition, like this:
or:
or:
or:
The second parameter should be a function with two arguments, which represents one key-value pair in the object. The return value should be a list containing two objects. The first object should contain all the key-value pairs where the function parameter returns a truthy value, and the second object should contain all the key-value pairs where the function parameter returns a falsey value.
The original object passed into the function should not be altered.
The text was updated successfully, but these errors were encountered: