Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
hack6493213d$ npm install string-concat --save
const stringConcat = require('string-concat');
let result = stringConcat( "Hello", " ","world");
// Returns: Hello World
$ npm install compare-numbers
var compareNumbers = require("compare-numbers");
compareNumbers.asc(10, 1); // 1
compareNumbers.asc(1, 10); // -1
compareNumbers.asc(10, 10); // 0
because using < <= > >= == is sooooo legacy
Lensflare6079213dContext is everything.
I’d say it’s ok to concatenate 2 short strings with the + operator. In most cases it’s more readable and the performance loss is negligible.
And if the "modern" style requires a dependency, it’s also a big disadvantage.
msdsk2064213dlet start = "I'm definitely",
end = "not doing this."
vintprox4552213dI'd say it's inconsiderate, if it's meant for potentially translatable strings. Other than that - KISS.
TeachMeCode3526213dWhat’s wrong with using +?
Cyanide13955213dTemplate literals? And what’s wrong with “+”?