Skip to content

Make a function that organizes an input array into ordered sub-arrays by type, where each value with duplicates is also contained within an array.

Notifications You must be signed in to change notification settings

espain/ZTMcleanRoom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

ZTMcleanRoom

Make a function that organizes an input array into ordered sub-arrays by type, where each value with duplicates is also contained within an array. Instructions:

Clean the room function: given an input of [1,2,4,591,392,391,2,5,10,2,1,1,1,20,20], make a function that organizes these into individual array that is ordered. For example answer(ArrayFromAbove) should return: [[1,1,1,1],[2,2,2], 4,5,10,[20,20], 391, 392,591]. Bonus: Make it so it organizes strings differently from number types. i.e. [1, "2", "3", 2] should return [[1,2], ["2", "3"]]

About

Make a function that organizes an input array into ordered sub-arrays by type, where each value with duplicates is also contained within an array.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published