Home > JavaScript, Technical > Remove all spaces from a string in JavaScript

Remove all spaces from a string in JavaScript

November 22, 2011

String.split(‘ ‘).join(”);

Advertisements
Categories: JavaScript, Technical
%d bloggers like this: