From fbf00b8f47c8b5a522a38ca4aa09382463fcdbaf Mon Sep 17 00:00:00 2001 From: Abhisek Pattnaik Date: Sat, 19 Dec 2015 13:30:57 +0530 Subject: [PATCH] Clarify description of Bonfire - Drop it - Added Description - Added MDN link to solve using Array.prototype.slice method --- .../intermediate-bonfires.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/challenges/01-front-end-development-certification/intermediate-bonfires.json b/challenges/01-front-end-development-certification/intermediate-bonfires.json index af75968d61..0289d01541 100644 --- a/challenges/01-front-end-development-certification/intermediate-bonfires.json +++ b/challenges/01-front-end-development-certification/intermediate-bonfires.json @@ -793,6 +793,7 @@ "title": "Drop it", "description": [ "Drop the elements of an array (first argument), starting from the front, until the predicate (second argument) returns true.", + "Return the rest of the array, otherwise return an empty array.", "Remember to use Read-Search-Ask if you get stuck. Try to pair program. Write your own code." ], "challengeSeed": [ @@ -813,7 +814,8 @@ ], "MDNlinks": [ "Arguments object", - "Array.shift()" + "Array.shift()", + "Array.slice()" ], "solutions": [ "function drop(arr, func) {\n // Drop them elements.\n while (arr.length && !func(arr[0])) {\n arr.shift();\n }\n return arr;\n}"