[JS Practice] Get key/value pairs as arrays

Title :

Get key/value pairs as arrays

Description:

Complete the keysAndValues function so that it takes in an object and returns the keys and values as separate arrays.

Example:

keysAndValues({a: 1, b: 2, c: 3}) // should return [['a', 'b', 'c'], [1, 2, 3]]

Continue reading