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