You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
245 B
JavaScript
11 lines
245 B
JavaScript
8 years ago
|
'use strict';
|
||
|
|
||
|
const parseValue = require("./value");
|
||
|
|
||
|
module.exports = function tableToArray(table) {
|
||
|
return table.fields.filter((field) => {
|
||
|
return (field.type === "TableValue");
|
||
|
}).map((field) => {
|
||
|
return parseValue(field.value);
|
||
|
});
|
||
|
}
|