concaternar null a java

You can use Array.prototype.join to ignore undefined and null:

['a', 'b', void 0, null, 6].join(''); // 'ab6'

According to the spec:

If element is undefined or null, Let next be the empty String; otherwise, let next be ToString(element).

Detalles del artículo

ID de artículo:
2
Fecha de alta:
2018-05-16 16:05:33
Vistas:
404
valoración (Votar):
(2)