lib/index.js
function sumov(object, depth = 0) {
    if (isNumber(object)) {
        return parseFloat(object);
    } else if (isObject(object) && Number.isInteger(depth)) {
        return sumObjectValues(object, depth);
    }
    return 0;
}
function sumov(object, depth = 0) {
    if (isNumber(object)) {
        return parseFloat(object);
    } else if (isObject(object) && Number.isInteger(depth)) {
        return sumObjectValues(object, depth);
    }
    return 0;
}
function sumov ( object , depth = 0 ) { if ( isNumber ( object ) ) { return parseFloat ( object ) ; } else if ( isObject ( object ) && Number . isInteger ( depth ) ) { return sumObjectValues ( object , depth ) ; } return 0 ; }
Computes the sum of all numeric values in an object

@param {Object} object
@param {Integer} depth
@returns {Number}
@example

sumov({a: 2, b: ["2", null, [], {a: {a: -1.0}}], c: {quick: "maths"}});
// => 3

//sum up to 2 levels
sumov({a: 2, b: ["2", null, [], {a: {a: -1.0}}], c: {quick: "maths"}}, 2);
// => 4
Computes the sum of all numeric values in an object