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:
@@ -12,13 +12,13 @@ import baseWhile from './.internal/baseWhile.js';
|
||||
* @returns {Array} Returns the slice of `array`.
|
||||
* @example
|
||||
*
|
||||
* var users = [
|
||||
* const users = [
|
||||
* { 'user': 'barney', 'active': false },
|
||||
* { 'user': 'fred', 'active': false },
|
||||
* { 'user': 'pebbles', 'active': true }
|
||||
* ];
|
||||
*
|
||||
* dropWhile(users, function(o) { return !o.active; });
|
||||
* dropWhile(users, o => !o.active);
|
||||
* // => objects for ['pebbles']
|
||||
*/
|
||||
function dropWhile(array, predicate) {
|
||||
|
||||
Reference in New Issue
Block a user