Bump to v4.9.0.

This commit is contained in:
John-David Dalton
2016-04-07 21:38:09 -07:00
parent e8cff1ef54
commit b7e3b3febd
49 changed files with 141 additions and 82 deletions

8
has.js
View File

@@ -13,16 +13,16 @@ import hasPath from './_hasPath';
* @returns {boolean} Returns `true` if `path` exists, else `false`.
* @example
*
* var object = { 'a': { 'b': { 'c': 3 } } };
* var other = _.create({ 'a': _.create({ 'b': _.create({ 'c': 3 }) }) });
* var object = { 'a': { 'b': 2 } };
* var other = _.create({ 'a': _.create({ 'b': 2 }) });
*
* _.has(object, 'a');
* // => true
*
* _.has(object, 'a.b.c');
* _.has(object, 'a.b');
* // => true
*
* _.has(object, ['a', 'b', 'c']);
* _.has(object, ['a', 'b']);
* // => true
*
* _.has(other, 'a');