From bc8a35733e15737feb4b2f988ee89905253178c4 Mon Sep 17 00:00:00 2001 From: Bhavesh-Parmar Date: Sat, 26 Mar 2022 13:46:10 +0530 Subject: [PATCH] revers function removed from string --- lib/string.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/string.js b/lib/string.js index 5f079766..0a6f6f6f 100644 --- a/lib/string.js +++ b/lib/string.js @@ -489,10 +489,11 @@ helpers.replaceFirst = function(str, a, b) { * @api public */ -helpers.reverse = function(str) { - if (!util.isString(str)) return ''; - return str.split('').reverse().join(''); -}; +// this function is already define in array functions +// helpers.reverse = function(str) { +// if (!util.isString(str)) return ''; +// return str.split('').reverse().join(''); +// }; /** * Sentence case the given string