Use destructuring in code samples.

This commit is contained in:
John-David Dalton
2017-01-11 13:36:52 -08:00
parent d80077ed94
commit f5e7671fbc
18 changed files with 37 additions and 37 deletions

View File

@@ -20,7 +20,7 @@ import findIndex from './findIndex.js';
* { 'user': 'pebbles', 'age': 1, 'active': true }
* ];
*
* find(users, o => o.age < 40);
* find(users, ({ age }) => age < 40);
* // => object for 'barney'
*/
const find = createFind(findIndex);