has.js 211 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 var get = require('./get'); var UNDEF; /** * Check if object has nested property. */ function has(obj, prop){ return get(obj, prop) !== UNDEF; } module.exports = has;