Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Hi!
I wanted to say hello with a line I write every day in some form.
I lurked about 2 months here and finally decided to create an account. Already feeling warm and cozy here :)
Hopefully, it does not lower my productivity to much, we have a project to deliver prior christmas... -
plusgut60137yWelcome :)
Sidenot: You don't need to make a join(','). The Array.prototype.toString already does that ;) -
Yeah, I first wanted to .join('\n') but changed it to ', ' later.
Normally, I do not use the join at all, because the return element would be wrapped in some React tags and thus no string anymore. -
devrantUsers.map(u=>`Hello ${u.userName}`).join`, `
i just had to do some golfing... -
const sayHello = compose(
join(),
map(compose(
concat('Hello '),
get('username')
))
);
sayHello(devrantUsers);
Related Rants
devrantUsers.map(user => `Hello ${user.userName}`).join(', ');
undefined
first post
es6
hello devrant