Code coverage report for object/some.js

Statements: 100% (10 / 10)      Branches: 100% (2 / 2)      Functions: 100% (4 / 4)      Lines: 100% (9 / 9)     

All files » object/ » some.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 201         1 21 21 41 14 14     21     1      
define(['./forOwn'], function(forOwn) {
 
    /**
     * Object some
     */
    function some(obj, callback, thisObj) {
        var result = false;
        forOwn(obj, function(val, key) {
            if (callback.call(thisObj, val, key, obj)) {
                result = true;
                return false; // break
            }
        });
        return result;
    }
 
    return some;
 
});