mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Update doc examples to ES2015.
This commit is contained in:
4
has.js
4
has.js
@@ -11,8 +11,8 @@ import hasPath from './.internal/hasPath.js';
|
||||
* @returns {boolean} Returns `true` if `path` exists, else `false`.
|
||||
* @example
|
||||
*
|
||||
* var object = { 'a': { 'b': 2 } };
|
||||
* var other = create({ 'a': create({ 'b': 2 }) });
|
||||
* const object = { 'a': { 'b': 2 } };
|
||||
* const other = create({ 'a': create({ 'b': 2 }) });
|
||||
*
|
||||
* has(object, 'a');
|
||||
* // => true
|
||||
|
||||
Reference in New Issue
Block a user