function convertResultArrayToObject(result) {
    return {
        pass: result[0],
        expected: result[1],
        actual: result[2],
        lineNumber: result[3]
    };
}
/*
convertResultArrayToObject -> Array -> Object

doctest returns results in an array
This function converts the array to an object, so it would be easier to
work with.

> convertResultArrayToObject([true, 10, 10, 5])
{ pass: true, expected: 10, actual: 10, lineNumber: 5 }
*/
> Array -> Object
doctest returns results in an array
This function converts the array to an object, so it would be easier to
work with.


> Array - > Object doctest returns results in an array This function converts the array to an object so it would be easier to work with .
function convertResultArrayToObject(result) {
    return {
        pass: result[0],
        expected: result[1],
        actual: result[2],
        lineNumber: result[3]
    };
}
function convertResultArrayToObject ( result ) { return { pass : result [ 0 ] , expected : result [ 1 ] , actual : result [ 2 ] , lineNumber : result [ 3 ] } ; }
convertResultArrayToObject -> Array -> Object
doctest returns results in an array
This function converts the array to an object, so it would be easier to
work with.
convertResultArrayToObject - > Array - > Object doctest returns results in an array This function converts the array to an object so it would be easier to work with .