lib/xlsx-to-json.js
function parseBasicArrayField(field, key, array) {
    var basic_array;

    if (typeof array === "string") {
        basic_array = array.split(arraySeparator);
    } else {
        basic_array = [];
        basic_array.push(array);
    };

    var result = [];
    if (isNumberArray(basic_array)) {
        basic_array.forEach(function(element) {
            result.push(Number(element));
        });
    } else if (isBooleanArray(basic_array)) {
        basic_array.forEach(function(element) {
            result.push(toBoolean(element));
        });
    } else { //string array
        result = basic_array;
    };
    // console.log("basic_array", result + "|||" + cell.value);
    field[key] = result;
}
function parseBasicArrayField(field, key, array) {
    var basic_array;

    if (typeof array === "string") {
        basic_array = array.split(arraySeparator);
    } else {
        basic_array = [];
        basic_array.push(array);
    };

    var result = [];
    if (isNumberArray(basic_array)) {
        basic_array.forEach(function(element) {
            result.push(Number(element));
        });
    } else if (isBooleanArray(basic_array)) {
        basic_array.forEach(function(element) {
            result.push(toBoolean(element));
        });
    } else { //string array
        result = basic_array;
    };
    // console.log("basic_array", result + "|||" + cell.value);
    field[key] = result;
}
function parseBasicArrayField ( field , key , array ) { var basic_array ; if ( typeof array === "string" ) { basic_array = array . split ( arraySeparator ) ; } else { basic_array = [ ] ; basic_array . push ( array ) ; } ; var result = [ ] ; if ( isNumberArray ( basic_array ) ) { basic_array . forEach ( function ( element ) { result . push ( Number ( element ) ) ; } ) ; } else if ( isBooleanArray ( basic_array ) ) { basic_array . forEach ( function ( element ) { result . push ( toBoolean ( element ) ) ; } ) ; } else { //string array result = basic_array ; } ; // console.log("basic_array", result + "|||" + cell.value); field [ key ] = result ; }
parse simple array.
parse simple array .