mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
Update doc examples to ES2015.
This commit is contained in:
@@ -16,11 +16,9 @@ import toKey from './.internal/toKey.js';
|
||||
* @returns {Object} Returns `object`.
|
||||
* @example
|
||||
*
|
||||
* var view = {
|
||||
* const view = {
|
||||
* 'label': 'docs',
|
||||
* 'click': function() {
|
||||
* console.log('clicked ' + this.label);
|
||||
* }
|
||||
* 'click': () => console.log(`clicked ${ this.label }`)
|
||||
* };
|
||||
*
|
||||
* bindAll(view, ['click']);
|
||||
|
||||
Reference in New Issue
Block a user