function reverseStr(str = "") { return str.split("").reduceRight((t, v) = > t + v); } const str = "reduce123"; console.log(reverseStr(str)); // "123recuder"
Copyright© 2013-2020
All Rights Reserved 京ICP备2023019179号-8