Code coverage report for object/has.js

Statements: 100% (6 / 6)      Branches: 100% (0 / 0)      Functions: 100% (3 / 3)      Lines: 100% (5 / 5)     

All files » object/ » has.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 161   1         1 31     1        
define(['./get'], function (get) {
 
    var UNDEF;
 
    /**
     * Check if object has nested property.
     */
    function has(obj, prop){
        return get(obj, prop) !== UNDEF;
    }
 
    return has;
 
});