Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 19 2020 20:09
    @krisb1220 banned @Gastony
  • May 14 2020 22:39
    @bjorno43 banned @minitechtips_twitter
  • May 14 2020 22:38
    @bjorno43 banned @real-action
  • Feb 01 2020 00:27
    @bjorno43 banned @Ndoua
  • Jan 07 2020 03:10
    @bjorno43 banned @doctor-sam
  • Aug 17 2019 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 2019 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 2019 17:13
    @mstellaluna banned @cmal
  • Jan 08 2019 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
John Nunns
@johnnunns
thanks bud @jdtdesigns
CamperBot
@camperbot
johnnunns sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:cookie: 860 | @jdtdesigns |http://www.freecodecamp.com/jdtdesigns
JD Tadlock
@jdtdesigns
@johnnunns welcome
John Nunns
@johnnunns
what's the higher level function you could use for it?
or is there one?
JD Tadlock
@jdtdesigns
.reduce() is for arrays so wouldn't work for that
lodash allows you to use any of the higher orders on objects as well
which is why most devs use it on every project
as well as me :P
Sorin Ruse
@sorinr
@asmaamoussa suppose you want them centered. right?
alpox
@alpox
@johnnunns @jdtdesigns Converting the object keys to an array and then map over it:
Object.keys(obj).map((key, idx) => [idx, obj[key]]);
asmaamoussa
@asmaamoussa
@sorinr yup
JD Tadlock
@jdtdesigns
@alpox ;)
Sorin Ruse
@sorinr
@asmaamoussa just add text-align: center; to #social-media{ in css
asmaamoussa
@asmaamoussa
@sorinr I did already and it wasn't working. now it did work :D
Sorin Ruse
@sorinr
@asmaamoussa maybe u had some other code before that was canceling that property
asmaamoussa
@asmaamoussa
@sorinr yes... anyways, thank u. you've been a great help
CamperBot
@camperbot
asmaamoussa sends brownie points to @sorinr :sparkles: :thumbsup: :sparkles:
:star2: 1111 | @sorinr |http://www.freecodecamp.com/sorinr
Sorin Ruse
@sorinr
@alpox not sure if the above will work for nested data
@asmaamoussa welcome
JD Tadlock
@jdtdesigns
@alpox i win Object.keys(obj).map(key=> [key, obj[key]])
Sorin Ruse
@sorinr
lol
alpox
@alpox
@jdtdesigns Right :D
chapeau
@sorinr You're right, but it didn't seem that he needs nested data :thought_balloon:
Sorin Ruse
@sorinr
@alpox i would ask to provide an input and output example before any work its done. anyway both u and @jdtdesigns made great jobs based on the info u had :+1:
hey guys, i collapsed my navigation bar but when i am using mobile, i can't click it
anyone can help me with this?
kirbyedy
@kirbyedy
@FL8Liew make sure you include jquery and bootstrap libraries in the codepen settings
in the javascript part
FL8Liew
@FL8Liew
@kirbyedy do u have sample on what should i include there?
kirbyedy
@kirbyedy
jquery should be loaded first, then bootstrap
just the quick add
as you did in the css section
FL8Liew
@FL8Liew
sorry, but i dont get what u mean.....
kirbyedy
@kirbyedy
here is a picture
Screen Shot 2017-01-19 at 11.05.44.png
FL8Liew
@FL8Liew
oh, so which mean i need to include bootstrap under javascript too?
kirbyedy
@kirbyedy
yes
FL8Liew
@FL8Liew
ok, i get it
thank you very much
:D
kirbyedy
@kirbyedy
note the sequence, first jquery then bootstrap
FL8Liew
@FL8Liew
ok, thx
Ayush Bahuguna
@relentless-coder
need help with an angular js issue. I have a function inside my service, how do I use it my controller?
Muhammad Hasham
@MuhammadHasham23
what is the use of .prop() in simple words in jquery?
Anabel
@AnabelSalomone
Please, can anybody help me with the drop-down menu in the navigation bar? click on it and you'll see the problem :/ https://jsfiddle.net/marieanabel/pkn9h4c7/64/