From 8e425fb358a1f882a06b87068e794ec8c4cb2b6f Mon Sep 17 00:00:00 2001 From: jdalton Date: Sat, 21 Mar 2015 10:01:46 -0700 Subject: [PATCH] Tweak _.at and _.matchesProperty doc examples. [ci skip] --- lodash.src.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lodash.src.js b/lodash.src.js index 08071af19..7851cc13e 100644 --- a/lodash.src.js +++ b/lodash.src.js @@ -6108,8 +6108,8 @@ * _.at(['a', 'b', 'c'], [0, 2]); * // => ['a', 'c'] * - * _.at(['fred', 'barney', 'pebbles'], 0, 2); - * // => ['fred', 'pebbles'] + * _.at(['barney', 'fred', 'pebbles'], 0, 2); + * // => ['barney', 'pebbles'] */ var at = restParam(function(collection, props) { var length = collection ? collection.length : 0; @@ -11018,13 +11018,12 @@ * @example * * var users = [ - * { 'user': 'barney', 'age': 36 }, - * { 'user': 'fred', 'age': 40 }, - * { 'user': 'pebbles', 'age': 1 } + * { 'user': 'barney' }, + * { 'user': 'fred' } * ]; * * _.find(users, _.matchesProperty('user', 'fred')); - * // => { 'user': 'fred', 'age': 40 } + * // => { 'user': 'fred' } */ function matchesProperty(key, value) { return baseMatchesProperty(key + '', baseClone(value, true));