slice works just fine in IE and other browsers, it’s part of the specification and it’s the most efficient method too:
alert("xxx_456".slice(-3));
//-> 456
slice Method (String) – MSDN
slice – Mozilla Developer Center
slice works just fine in IE and other browsers, it’s part of the specification and it’s the most efficient method too:
alert("xxx_456".slice(-3));
//-> 456
slice Method (String) – MSDN
slice – Mozilla Developer Center