Data structure challenge
Darik.
Coding challenge
Neural line 2021
Sort the following data into usable array of objects structure [{ name: "Susan", id: "3", age: "20" }]
known facts: 1 the first array of the array is the heading the rest is user data. 2 not all arrays ara the same \o/
const arr1 = [
['name', 'id', 'age', 'weight', 'Cool'],
['Susan', '3', '20', '120', true],
['John', '1', '21', '150', true],
['Bob', '2', '23', '90', false],
['Ben', '4', '20', '100', true]
]
const arr2 = [
['name', 'id', 'height'],
['Bob', '2', '50'],
['John', '1', '45'],
['Ben', '4', '43'],
['Susan', '3', '48']
]
const arr3 = [
['name', 'id', 'parent'],
['Bob', '2', 'yes'],
['John', '1', 'yes']
]
Distributed under the MIT license. See LICENSE
for more information.
Q0.0U0.0A0.0N0.0T0.0U0.0M0 - I0.0N0.0C0.0E0.0P0.0T0.0I0.0O0.0N0.0S0