From 2386557b5ef3ad6bda7efc0d0569e36d2d5ee883 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 11 Jan 2016 16:11:54 -0800 Subject: [PATCH] Add more `_.toArray` doc examples. [ci skip] --- lodash.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/lodash.js b/lodash.js index 0e56ff0fa..8e0ea10ab 100644 --- a/lodash.js +++ b/lodash.js @@ -10113,10 +10113,17 @@ * @returns {Array} Returns the converted array. * @example * - * (function() { - * return _.toArray(arguments).slice(1); - * }(1, 2, 3)); - * // => [2, 3] + * _.toArray({ 'a': 1, 'b': 2 }); + * // => [1, 2] + * + * _.toArray('abc'); + * // => ['a', 'b', 'c'] + * + * _.toArray(1); + * // => [] + * + * _.toArray(null); + * // => [] */ function toArray(value) { if (!value) {