solidity-stringutils icon indicating copy to clipboard operation
solidity-stringutils copied to clipboard

concatenate three strings

Open bsollenb54 opened this issue 7 years ago • 2 comments

How would concatenate three strings?

var 2 = "abc".toSlice().concat("def".toSlice().concat("ghi".toSlice()));

What am I missing?

bsollenb54 avatar Jan 03 '18 22:01 bsollenb54

Having the same issue. It only seems to concat the first two strings for me.

rohalla2 avatar Feb 12 '18 23:02 rohalla2

@bsollenb54 It should be: var 2 = "abc".toSlice().concat("def".toSlice().toSlice().concat("ghi".toSlice()));

longzhi avatar Apr 19 '19 03:04 longzhi