File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
17 - Sort Without Articles Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 5959 obj . band = obj . band . replace ( / ^ t h e | ^ a n | ^ a / i, ' ' ) . trim ( )
6060} )
6161
62- console . log ( cloneBands ) ;
6362phantom = phantom . sort ( ( a , b ) => a > b ? 1 : - 1 )
64- console . log ( phantom ) ;
6563
6664cloneBands . map ( obj => {
6765 phantom . forEach ( ( item , idx ) => {
6866 if ( item === obj . band ) result [ idx ] = obj . src ;
6967 } )
7068} )
7169
72- console . clear ( )
73- // console.
70+ result . forEach ( value => {
71+ var li = document . createElement ( 'li' ) ;
72+ li . innerHTML = value ;
73+ document . getElementById ( 'bands' ) . appendChild ( li ) ;
74+ } )
7475
7576</ script >
7677
Original file line number Diff line number Diff line change 202014 . [x] ~~ JavaScript References vs. Copying~~
212115 . [x] ~~ LocalStorage~~
222216 . [x] ~~ Mouse Move Shadow~~
23- 17 . [ ] Sort Without Articles
23+ 17 . [x] ~~ Sort Without Articles~~
242418 . [ ] Adding Up Times with Reduce
252519 . [ ] Webcam Fun
262620 . [ ] Speech Detection
You can’t perform that action at this time.
0 commit comments