function safeBody(body) {
    if (Array.isArray(body)) {
        return body;
    }

    return Object.keys(body).sort().map(idx => body[idx]);
}
function safeBody(body) {
    if (Array.isArray(body)) {
        return body;
    }

    return Object.keys(body).sort().map(idx => body[idx]);
}
function safeBody ( body ) { if ( Array . isArray ( body ) ) { return body ; } return Object . keys ( body ) . sort ( ) . map ( idx => body [ idx ] ) ; }
Allow supporting body: { "0": { ... } }
Allow supporting body : { 0 : { ... } }