7 kyu
Get key/value pairs as arrays
7,136 of 10,686jhoffner
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]]
Style Points (JS/CoffeeScript only): This kata only tests for data that uses object literal notation (simple objects). For extra style, can you get your method to check for objects that extend their prototype?
Arrays
Fundamentals
Similar Kata:
Stats:
Created | Apr 4, 2013 |
Published | Jun 24, 2013 |
Warriors Trained | 15529 |
Total Skips | 2036 |
Total Code Submissions | 33052 |
Total Times Completed | 10686 |
JavaScript Completions | 7136 |
CoffeeScript Completions | 641 |
Ruby Completions | 3255 |
Total Stars | 87 |
% of votes with a positive feedback rating | 91% of 686 |
Total "Very Satisfied" Votes | 582 |
Total "Somewhat Satisfied" Votes | 87 |
Total "Not Satisfied" Votes | 17 |