Lines Matching refs:columnNames
55 var columnNames = options.columns || []; // optional user-supplied columns to include
57 items = toArray(items, columnNames);
60 if (!columnNames.length) {
63 if (columnNames.indexOf(columnName) === -1) columnNames.push(columnName);
69 var columns = columnNames.reduce(function (columns, columnName) {
76 columnNames.forEach(function (columnName) {
88 columnNames.forEach(function (columnName) {
105 columnNames.forEach(function (columnName) {
129 columnNames.forEach(function (columnName) {
143 columnNames.forEach(function (columnName) {
155 columnNames.forEach(function (columnName) {
164 columnNames.forEach(function (columnName) {
182 columnNames.forEach(function (columnName) {
195 var rows = createRows(items, columns, columnNames, options.paddingChr); // merge lines into rows
215 function createRows(items, columns, columnNames, paddingChr) { argument
219 columnNames.forEach(function (columnName) {
226 columnNames.forEach(function (columnName) {
297 function toArray(items, columnNames) { argument
302 item[columnNames[0] || 'key'] = key;
303 item[columnNames[1] || 'value'] = items[key];