Merge pull request #100 from FreeCodeCamp/brndnb-bonfire-challenges-1

Update sorted union bonfire description
pull/101/head
Nathan 2015-02-15 22:29:09 -05:00
commit e37f69b3dd
1 changed files with 4 additions and 2 deletions

View File

@ -310,7 +310,9 @@
"name": "Sorted Union",
"difficulty": "2.07",
"description": [
"Write a function that takes two or more arrays and returns a new array of unique values sorted in order."
"Write a function that takes two or more arrays and returns a new array of unique values in the order of the original provided arrays.",
"The unique numbers should be sorted by their original order, but the final array should not be sorted in numerical order.",
"Check the assertion tests for examples."
],
"challengeSeed": "function unite(arr) {\n return arr;\r\n}\n\nunite([1, 2, 3], [5, 2, 1, 4], [2, 1]);",
"tests": [
@ -564,4 +566,4 @@
"assert.deepEqual(inventory([[0, 'Bowling Ball'], [0, 'Dirty Sock'], [0, 'Hair pin'], [0, 'Microphone']], [[1, 'Hair Pin'], [1, 'Half-Eaten Apple'], [1, 'Bowling Ball'], [1, 'Toothpaste']]), [[1, 'Bowling Ball'], [1, 'Dirty Sock'], [1, 'Hair pin'], [1, 'Half-Eaten Apple'], [1, 'Microphone'], [1, 'Toothpaste']]);"
]
}
]
]